Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Can you give an example of a situation where you would rather have cascading variables than lexical scope?


• JS libraries implementing polyfills for new CSS properties or their own CSS-like behaviors (e.g. `--masonry-display: jagged-grid`)

• themes (`--theme-color` that can be inherited and overridden just like `color` would)




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: