W3C home > Mailing lists > Public > public-css-archive@w3.org > June 2019

Re: [csswg-drafts] [css-scoping-1] Dynamic changes of state and attributes referenced by :host-context rules are pretty hard to handle efficiently. (#1914)

From: Ryosuke Niwa via GitHub <sysbot+gh@w3.org>
Date: Mon, 17 Jun 2019 21:20:29 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-502855305-1560806428-sysbot+gh@w3.org>
The directionality use case is best served by `:dir` pseudo selector. The dark theme case is best served via CSS custom variables. Note there is no guarantee that your component isn't used where the theme is defined so `:host-context` is awfully unsuited for theming purposes.

-- 
GitHub Notification of comment by rniwa
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/1914#issuecomment-502855305 using your GitHub account
Received on Monday, 17 June 2019 21:20:30 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 19 October 2021 01:31:10 UTC