mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-05 06:32:30 +02:00
Teach :has() matching to recognize the common case of a single descendant compound made only of tag and class selectors. This lets us stay on the cheap per-element matcher instead of recursing through the full relative-selector machinery for each candidate descendant. Keep the optimization limited to that simple selector shape and fall back to the generic matcher for everything else.
85 KiB
85 KiB