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

Description Antti Koivisto 2021-11-26 04:50:21 PST
It is sufficient to traverse direct children to match something like :has(> foo).
Comment 1 Antti Koivisto 2021-11-26 05:06:30 PST
Created attachment 445189 [details]
Patch
Comment 2 EWS 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].
Comment 3 Radar WebKit Bug Importer 2021-11-26 07:14:18 PST
<rdar://problem/85767760>