mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-03 13:02:09 +02:00
Track whether any :has() relative selector in a style scope uses a sibling combinator and let the generic ancestor walk consult that before scanning ancestor siblings. This keeps descendant-only :has() invalidations from walking unrelated siblings while preserving the existing behavior for selectors that use + or ~. Add counter-based test coverage so the reduced sibling scans stay visible through the invalidation counters.
5.2 KiB
5.2 KiB