Re: [csswg-drafts] [css-conditional-5] Clarify behavior of named container queries in shadow trees (#12090)

> In making that change, we didn't specify the question of container names. It does seem to me though that "Container queries and units use the flat tree" would include container names. That seems to me like the WPT is out of date.

Keeping container-name as a tree-scoped name/reference was intentional from my side.

The spec currently does not say that container-name is not tree-scoped, which I think makes it one per https://drafts.csswg.org/css-scoping/#shadow-names

When it comes to implementations, it looks like Chrome and Safari treats it as a tree-scoped reference, while Firefox doesn't.

If it should not be tree-scoped, we need to resolve on that at make it explicit in the spec.


-- 
GitHub Notification of comment by lilles
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/12090#issuecomment-3204360671 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Wednesday, 20 August 2025 06:25:41 UTC