Bug 233520 - [:has() pseudo-class] Don't traverse descendants during selector matching unless needed
Summary: [:has() pseudo-class] Don't traverse descendants during selector matching unl...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Antti Koivisto
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2021-11-26 04:50 PST by Antti Koivisto
Modified: 2021-11-26 07:14 PST (History)
9 users (show)

See Also:


Attachments
Patch (10.70 KB, patch)
2021-11-26 05:06 PST, Antti Koivisto
no flags Details | Formatted Diff | Diff

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