- From: Matthew Dean via GitHub <sysbot+gh@w3.org>
- Date: Mon, 19 Aug 2019 19:54:46 +0000
- To: public-css-archive@w3.org
I think the `local` keyword mentioned earlier is fairly useful, and I would extend that in this syntax to be the essentially the boundary root i.e. normally the document or the shadow root if within there. In other words, every HTML component, by default, could have a `scope="local"` value. But in a shadow root, I could then do this: ``` <div scope="local, document(foo)"></div> ``` Meaning, the local (unscoped) styles apply, as does the global scoped `foo` (since this is an "or" join, so either query can match). A vendor applying styles would just need to know which scoped stylesheets / stylesheet blocks to apply for the cascade. There may be a little syntactic massaging needed there, but a query-style syntax seems less verbose and yet more powerful than the namespaced-style syntax. -- GitHub Notification of comment by matthew-dean Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/4061#issuecomment-522729125 using your GitHub account
Received on Monday, 19 August 2019 19:54:48 UTC