[wpt-sync] Sync PR 64559 - WebKit export of https://bugs.webkit.org/show_bug.cgi?id=304555
Categories
(Core :: CSS Parsing and Computation, task, P4)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox162 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Attachments
(1 file)
|
261.07 KB,
text/plain
|
Details |
Sync web-platform-tests PR 64559 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/64559
Details from upstream follow.
Ahmad Saleem <ahmad.saleem792+github@gmail.com> wrote:
WebKit export of https://bugs.webkit.org/show_bug.cgi?id=304555
WebKit export from bug: Named Style Container Queries on :<!---->host fail for Slotted Elements
<pre>
Named Style Container Queries on :host fail for Slotted ElementsThis patch aligns WebKit with Gecko / Firefox and Blink / Chromium.
When a slotted shadow host (e.g. <child-element> inside <parent-element>) has an
@container rule with a :host selector in its own shadow tree, the rule is matched with
ScopeOrdinal::Shadow. selectContainer() only used the assigned slot as the originating
element for ScopeOrdinal::Element, so for Shadow scope the lookup fell back to
element.shadowHost(), which is null for a slotted light DOM child. A container-name
defined by the slot host's own :host rule (also ScopeOrdinal::Shadow) was therefore
never allowed, and the query found no container.Treat ScopeOrdinal::Shadow the same as ScopeOrdinal::Element when the element is
assigned to a slot, so names from the slot's host are resolved against the slot's tree.WebKit-Bug: <a href="https://bugs.webkit.org/show_bug.cgi?id=304555">https://bugs.webkit.org/show_bug.cgi?id=304555</a>
WebKit-Canonical-Link: <a href="https://commits.webkit.org/325470@main">https://commits.webkit.org/325470@main</a>
</pre>
| Assignee | ||
Updated•9 days ago
|
| Assignee | ||
Comment 1•9 days ago
|
||
Pushed to try (stability) https://treeherder.mozilla.org/jobs?repo=try&landoInstance=lando-prod-2025&landoCommitID=119204
| Assignee | ||
Comment 2•9 days ago
|
||
CI Results
Ran 11 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 324 tests
Status Summary
Firefox
OK : 1[GitHub] 22[Gecko-windows11-32-25h2-opt] 212[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-32-25h2-debug, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
PASS: 2[GitHub] 62[Gecko-linux2204-64-wayland-debug, Gecko-linux2204-64-wayland-opt] 181[Gecko-windows11-32-25h2-opt] 1305[Gecko-windows11-32-25h2-debug] 1343[Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt] 1345[Gecko-linux2404-64-debug, Gecko-linux2404-64-opt] 1356[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview]
FAIL: 9[Gecko-windows11-32-25h2-opt] 235[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview] 237[Gecko-windows11-32-25h2-debug] 246[Gecko-linux2404-64-debug, Gecko-linux2404-64-opt] 248[Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
Chrome
OK : 1
PASS: 2
Safari
OK : 1
FAIL: 2
Links
Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base
Details
(See attachment for full changes)
Comment 4•7 days ago
|
||
| bugherder | ||
Description
•