[css-cascade-6] :scope and featureless elements · Issue #9025 · w3c/csswg-drafts (original) (raw)
Navigation Menu
- Explore
- Pricing
Provide feedback
Saved searches
Use saved searches to filter your results more quickly
Description
- With
@scope (:host)
, you can make the shadow host a scoping root. - Since
:scope
is defined to match the scoping root, it would then be able to match that element, even if it's featureless.
Or would it?
Selectors:
A featureless element does not match any selector at all, except those it is explicitly defined to match (and logical combination pseudo-classes representing those selectors).
Specs appear to be saying that @scope (:host) { :scope { ... } }
would match, except that they aren't explicitly saying this.
Should we state this explicitly?