Bug 233520

Summary: [:has() pseudo-class] Don't traverse descendants during selector matching unless needed
Product: WebKit Reporter: Antti Koivisto <koivisto>
Component: CSSAssignee: Antti Koivisto <koivisto>
Status: RESOLVED FIXED    
Severity: Normal CC: allan.jensen, esprehn+autocc, ews-watchlist, glenn, gyuyoung.kim, macpherson, menard, webkit-bug-importer, zalan
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch none

Antti Koivisto
Reported 2021-11-26 04:50:21 PST
It is sufficient to traverse direct children to match something like :has(> foo).
Attachments
Patch (10.70 KB, patch)
2021-11-26 05:06 PST, Antti Koivisto
no flags
Antti Koivisto
Comment 1 2021-11-26 05:06:30 PST
EWS
Comment 2 2021-11-26 07:13:11 PST
Committed r286180 (244563@main): <https://commits.webkit.org/244563@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 445189 [details].
Radar WebKit Bug Importer
Comment 3 2021-11-26 07:14:18 PST
Note You need to log in before you can comment on or make changes to this bug.