Bug 261370 - :has(~ :is(.x ~ .y)) must consider all siblings of the :has scope
Summary: :has(~ :is(.x ~ .y)) must consider all siblings of the :has scope
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Cameron McCormack (:heycam)
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2023-09-08 22:05 PDT by Cameron McCormack (:heycam)
Modified: 2023-09-12 22:35 PDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.