Re: [csswg-drafts] [css-variables?] Higher level custom properties that control multiple declarations (#5624)

I love the idea here because the conditions may be created _and_ referenced from within CSS.

This shares _some_ thematic similarity with the  [custom `:state()` pseudo-class](https://github.com/w3c/webcomponents/blob/gh-pages/proposals/custom-states-and-state-pseudo-class.md). They both help authors style by custom conditions, and both without being directly reflected in serialized HTML. While `:state()` differs in by using selectors and not supporting assignment within CSS, I’m sharing it so we can glean from their similarities and from feedback on `:state()`, as that one is already _shipping_ behind a flag in Chrome at the time of this writing.

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


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Tuesday, 27 October 2020 01:45:19 UTC