Hacker News new | ask | show | jobs
by ufo 4430 days ago
Can you give an example of a situation where you would rather have cascading variables than lexical scope?
1 comments

• 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)