Bug 296622
| Summary: | :host:has() should match | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Matt Clough <cluffpost> |
| Component: | CSS | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED DUPLICATE | ||
| Severity: | Minor | CC: | cluffpost, koivisto, ntim, webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | Safari Technology Preview | ||
| Hardware: | Mac (Apple Silicon) | ||
| OS: | macOS 15 | ||
| See Also: | https://bugs.webkit.org/show_bug.cgi?id=282687 | ||
Matt Clough
Overview:
Per CSSWG resolution (https://github.com/w3c/csswg-drafts/issues/10693#issuecomment-2289330553), the `:host:has()` selector should match.
Reproduction/Demo:
https://codepen.io/mattclough/pen/bNVBLWm?editors=1000
Expected results:
The shadow root host should be selected, consistent with https://github.com/mozilla/wg-decisions/issues/1592
Actual results:
The shadow root host is not selected
Build Date & Hardware:
Build 20622.1.20.1 on macOS 15.5 (24F74)
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/157565412>
Sam Sneddon [:gsnedders]
*** This bug has been marked as a duplicate of bug 282687 ***