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-pseudo-4][css-scoping] Can ::slotted() be followed with element-backed pseudo-elements? #11284

Closed
nt1m opened this issue Nov 27, 2024 · 4 comments

Comments

@nt1m
Copy link
Member

nt1m commented Nov 27, 2024

E.g. is ::slotted(*)::details-content allowed?

https://drafts.csswg.org/css-scoping/#slotted-pseudo only allows tree-abiding pseudo-elements behind ::slotted(), so ::slotted(*)::details-content would actually not work (the definition of element-backed pseudo-elements does not inherit from tree-abiding pseudo-elements).

cc @dbaron @fantasai @tabatkins

@nt1m nt1m changed the title [css-pseudos-4][css-scoping] Can ::slotted() be followed with element-backed pseudo-elements? [css-pseudo-4][css-scoping] Can ::slotted() be followed with element-backed pseudo-elements? Nov 27, 2024
@nt1m nt1m added css-pseudo-4 Current Work css-scoping-1 Current Work labels Nov 27, 2024
@nt1m
Copy link
Member Author

nt1m commented Nov 27, 2024

Also ::file-selector-button was changed from tree-abiding to element-backed (without any resolution AFAIK), so ::slotted(*)::file-selector-button also "regressed" spec-wise as a result.

@dbaron
Copy link
Member

dbaron commented Nov 27, 2024

I think there was previously prose in the spec that said all element-backed pseudo-elements were also tree-abiding. Either it was supposed to be there and was never actually written, or it somehow got removed in an editing error...

@dbaron
Copy link
Member

dbaron commented Nov 27, 2024

The relevant wording was removed in 24eda7a (search for "subset"); I think that was an editing error.

@dbaron dbaron closed this as completed in 1f4e5de Nov 27, 2024
@nt1m
Copy link
Member Author

nt1m commented Nov 27, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants