Skip to content

[css-cascade-6] :scope and featureless elements #9025

Open
@andruud

Description

@andruud
  • 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?

@mirisuzanne @tabatkins

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Needs Edits

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions