Re: [csswg-drafts] [css-cascade] Custom cascade origins (#4470)

I made a [codepen demo](https://codepen.io/mirisuzanne/pen/KKdWXGo?editors=1100) that demonstrates how I currently approximate both "origins" and "scope" using custom properties:

- Stacks of nested variable fallback values for custom origins, using different variable names
- Inheritance of variables to approximate scope (since inheritance is based on proximity)

In that way, each origin (variable) in the stack allows for scope (inheritance) internally, but higher origins will always take precedence.

-- 
GitHub Notification of comment by mirisuzanne
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/4470#issuecomment-622046840 using your GitHub account

Received on Thursday, 30 April 2020 19:10:14 UTC