Bug 296622

Summary: :host:has() should match
Product: WebKit Reporter: Matt Clough <cluffpost>
Component: CSSAssignee: 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
Reported 2025-07-29 07:45:45 PDT
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
Radar WebKit Bug Importer
Comment 1 2025-08-05 07:46:12 PDT
Sam Sneddon [:gsnedders]
Comment 2 2025-09-05 14:50:01 PDT
*** This bug has been marked as a duplicate of bug 282687 ***
Note You need to log in before you can comment on or make changes to this bug.