← 返回首页
[css-cascade-6] :scope and featureless elements · Issue #9025 · w3c/csswg-drafts · GitHub
Skip to content

Navigation Menu

Toggle navigation
Sign in
Appearance settings
Search or jump to...

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Include my email address so I can be contacted

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Resetting focus

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

New issue
New issue

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?

@mirisuzanne @tabatkins

Metadata

Metadata

Assignees

Type

No type

Fields

No fields configured for issues without a type.

Projects

Status
Needs Edits

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

  • Open in GitHub Copilot app

Footer

© 2026 GitHub, Inc.