W3C home > Mailing lists > Public > public-css-archive@w3.org > October 2020

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

From: Jonathan Neal via GitHub <sysbot+gh@w3.org>
Date: Tue, 27 Oct 2020 01:45:17 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-716923119-1603763116-sysbot+gh@w3.org>
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

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:42:21 UTC