Bug 261370

Summary: :has(~ :is(.x ~ .y)) must consider all siblings of the :has scope
Product: WebKit Reporter: Cameron McCormack (:heycam) <heycam>
Component: CSSAssignee: Cameron McCormack (:heycam) <heycam>
Status: RESOLVED FIXED    
Severity: Normal CC: webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Description Cameron McCormack (:heycam) 2023-09-08 22:05:16 PDT
While selectors like :has(~ .x ~ .y) need only consider the later siblings of an element with class name "x" or "y" changes, :has(~ :is(.x ~ .y)) must also consider previous siblings for "x" changes.
Comment 1 Radar WebKit Bug Importer 2023-09-08 22:05:33 PDT
<rdar://problem/115205991>
Comment 2 Cameron McCormack (:heycam) 2023-09-08 22:12:21 PDT
Pull request: https://github.com/WebKit/WebKit/pull/17623
Comment 3 EWS 2023-09-12 22:35:12 PDT
Committed 267932@main (20ce50e23068): <https://commits.webkit.org/267932@main>

Reviewed commits have been landed. Closing PR #17623 and removing active labels.