Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
andruud opened this issue Jul 3, 2023 · 4 comments
Open

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

andruud opened this issue Jul 3, 2023 · 4 comments

Comments

@andruud
Copy link
Member

andruud commented Jul 3, 2023

  • 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

@tabatkins
Copy link
Member

Yes, it needs to be explicitly stated. (And hm, Nesting probably needs to say that too...)

@andruud
Copy link
Member Author

andruud commented Aug 17, 2023

@astearns Proposed async resolution: :scope can match the featureless shadow host when that host is the scoping element.

@andruud andruud added the Async Resolution: Proposed Candidate for auto-resolve with stated time limit label Aug 17, 2023
@astearns
Copy link
Member

The CSSWG will automatically accept this resolution one week from now if no objections are raised here. Anyone can add an emoji to this comment to express support. If you do not support this resolution, please add a new comment.

Proposed Resolution: :scope can match the featureless shadow host when that host is the scoping element.

@astearns astearns added Async Resolution: Call For Consensus Resolution will be called after time limit expires and removed Async Resolution: Proposed Candidate for auto-resolve with stated time limit labels Aug 22, 2023
@astearns
Copy link
Member

astearns commented Sep 3, 2023

RESOLVED: :scope can match the featureless shadow host when that host is the scoping element.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Needs Edits
Development

No branches or pull requests

4 participants