Skip to content

Named container queries should query the composed tree - #54612

Merged
lilles merged 2 commits into
web-platform-tests:masterfrom
frehner:af/update-container-for-shadow-dom
Sep 9, 2025
Merged

Named container queries should query the composed tree#54612
lilles merged 2 commits into
web-platform-tests:masterfrom
frehner:af/update-container-for-shadow-dom

Conversation

@frehner

@frehner frehner commented Aug 31, 2025

Copy link
Copy Markdown
Contributor

It was recently resolved that named containers are NOT tree scoped. The original WPTs asserted that they were.

I've updated the tests to assert that named container queries are not scoped, though these tests are quite tricky so please triple check me here 🙂

Note that this inverts some of the existing results; namely, Firefox now passes all the tests (because it always resolved against the composed tree), and Blink/Webkit now fail those tests that Firefox now passes.

@frehner

frehner commented Aug 31, 2025

Copy link
Copy Markdown
Contributor Author

cc @lilles who originally wrote these tests

@lilles

lilles commented Sep 2, 2025

Copy link
Copy Markdown
Member

Ideally, the spec change should land first.

@lilles

lilles commented Sep 3, 2025

Copy link
Copy Markdown
Member

Spec PR: w3c/csswg-drafts#12720

Comment thread css/css-conditional/container-queries/container-for-shadow-dom.html
Comment thread css/css-conditional/container-queries/container-for-shadow-dom.html Outdated
chromium-wpt-export-bot pushed a commit that referenced this pull request Sep 3, 2025
Per spec resolution:

w3c/csswg-drafts#12090 (comment)

Not changing container-for-shadow-dom.html in this CL because there is
an upstream PR in progress:

#54612

Bug: 440049800
Change-Id: I8b463d798b6132b0bf8932b8152682959907af26
aarongable pushed a commit to chromium/chromium that referenced this pull request Sep 4, 2025
Per spec resolution:

w3c/csswg-drafts#12090 (comment)

Not changing container-for-shadow-dom.html in this CL because there is
an upstream PR in progress:

web-platform-tests/wpt#54612

Bug: 440049800
Change-Id: I8b463d798b6132b0bf8932b8152682959907af26
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6909530
Reviewed-by: Anders Hartvoll Ruud <andruud@chromium.org>
Commit-Queue: Rune Lillesveen <futhark@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1510774}
chromium-wpt-export-bot pushed a commit that referenced this pull request Sep 4, 2025
Per spec resolution:

w3c/csswg-drafts#12090 (comment)

Not changing container-for-shadow-dom.html in this CL because there is
an upstream PR in progress:

#54612

Bug: 440049800
Change-Id: I8b463d798b6132b0bf8932b8152682959907af26
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6909530
Reviewed-by: Anders Hartvoll Ruud <andruud@chromium.org>
Commit-Queue: Rune Lillesveen <futhark@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1510774}
chromium-wpt-export-bot pushed a commit that referenced this pull request Sep 4, 2025
Per spec resolution:

w3c/csswg-drafts#12090 (comment)

Not changing container-for-shadow-dom.html in this CL because there is
an upstream PR in progress:

#54612

Bug: 440049800
Change-Id: I8b463d798b6132b0bf8932b8152682959907af26
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6909530
Reviewed-by: Anders Hartvoll Ruud <andruud@chromium.org>
Commit-Queue: Rune Lillesveen <futhark@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1510774}
@frehner

frehner commented Sep 4, 2025

Copy link
Copy Markdown
Contributor Author

Are you working on the Blink/Chrome implementation? If so, I just wanted to point out that it appears that Chrome is failing three tests with this update, instead of two like webkit (and which I expected). Seems to be related to that one test that used background-color.

@frehner
frehner requested a review from lilles September 4, 2025 23:23
lando-worker Bot pushed a commit to mozilla-firefox/firefox that referenced this pull request Sep 8, 2025
…nd a flag, a=testonly

Automatic update from web-platform-tests
Make container-name not tree-scoped behind a flag

Per spec resolution:

w3c/csswg-drafts#12090 (comment)

Not changing container-for-shadow-dom.html in this CL because there is
an upstream PR in progress:

web-platform-tests/wpt#54612

Bug: 440049800
Change-Id: I8b463d798b6132b0bf8932b8152682959907af26
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6909530
Reviewed-by: Anders Hartvoll Ruud <andruud@chromium.org>
Commit-Queue: Rune Lillesveen <futhark@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1510774}

--

wpt-commits: a16c8bf8dfe6e35584d59a639086d433ab67a256
wpt-pr: 54665
@lilles
lilles merged commit e63f106 into web-platform-tests:master Sep 9, 2025
25 checks passed
@frehner
frehner deleted the af/update-container-for-shadow-dom branch September 9, 2025 14:45
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified that referenced this pull request Sep 9, 2025
…nd a flag, a=testonly

Automatic update from web-platform-tests
Make container-name not tree-scoped behind a flag

Per spec resolution:

w3c/csswg-drafts#12090 (comment)

Not changing container-for-shadow-dom.html in this CL because there is
an upstream PR in progress:

web-platform-tests/wpt#54612

Bug: 440049800
Change-Id: I8b463d798b6132b0bf8932b8152682959907af26
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6909530
Reviewed-by: Anders Hartvoll Ruud <andruudchromium.org>
Commit-Queue: Rune Lillesveen <futharkchromium.org>
Cr-Commit-Position: refs/heads/main{#1510774}

--

wpt-commits: a16c8bf8dfe6e35584d59a639086d433ab67a256
wpt-pr: 54665

UltraBlame original commit: bf4744b3095e992a8d16464083fe4f1ccfd8bdf3
gecko-dev-updater pushed a commit to marco-c/gecko-dev-comments-removed that referenced this pull request Sep 9, 2025
…nd a flag, a=testonly

Automatic update from web-platform-tests
Make container-name not tree-scoped behind a flag

Per spec resolution:

w3c/csswg-drafts#12090 (comment)

Not changing container-for-shadow-dom.html in this CL because there is
an upstream PR in progress:

web-platform-tests/wpt#54612

Bug: 440049800
Change-Id: I8b463d798b6132b0bf8932b8152682959907af26
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6909530
Reviewed-by: Anders Hartvoll Ruud <andruudchromium.org>
Commit-Queue: Rune Lillesveen <futharkchromium.org>
Cr-Commit-Position: refs/heads/main{#1510774}

--

wpt-commits: a16c8bf8dfe6e35584d59a639086d433ab67a256
wpt-pr: 54665

UltraBlame original commit: bf4744b3095e992a8d16464083fe4f1ccfd8bdf3
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified-and-comments-removed that referenced this pull request Sep 9, 2025
…nd a flag, a=testonly

Automatic update from web-platform-tests
Make container-name not tree-scoped behind a flag

Per spec resolution:

w3c/csswg-drafts#12090 (comment)

Not changing container-for-shadow-dom.html in this CL because there is
an upstream PR in progress:

web-platform-tests/wpt#54612

Bug: 440049800
Change-Id: I8b463d798b6132b0bf8932b8152682959907af26
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6909530
Reviewed-by: Anders Hartvoll Ruud <andruudchromium.org>
Commit-Queue: Rune Lillesveen <futharkchromium.org>
Cr-Commit-Position: refs/heads/main{#1510774}

--

wpt-commits: a16c8bf8dfe6e35584d59a639086d433ab67a256
wpt-pr: 54665

UltraBlame original commit: bf4744b3095e992a8d16464083fe4f1ccfd8bdf3
mertcanaltin pushed a commit to mertcanaltin/wpt that referenced this pull request Oct 26, 2025
Per spec resolution:

w3c/csswg-drafts#12090 (comment)

Not changing container-for-shadow-dom.html in this CL because there is
an upstream PR in progress:

web-platform-tests#54612

Bug: 440049800
Change-Id: I8b463d798b6132b0bf8932b8152682959907af26
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6909530
Reviewed-by: Anders Hartvoll Ruud <andruud@chromium.org>
Commit-Queue: Rune Lillesveen <futhark@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1510774}
mertcanaltin pushed a commit to mertcanaltin/wpt that referenced this pull request Oct 26, 2025
…tests#54612)

* Named container queries should query the composed tree
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants