LibWeb/CSS: Disallow :has() and pseudo-elements in :has() when parsing

This commit is contained in:
Sam Atkins 2024-11-14 12:18:10 +00:00 committed by Andreas Kling
commit 7f803c5c3d
Notes: github-actions[bot] 2024-11-14 19:08:37 +00:00
6 changed files with 45 additions and 0 deletions

View file

@ -1 +1,6 @@
:has(:yakthonk) should be invalid: PASS
:has(:not(:yakthonk)) should be invalid: PASS
:has(:has(span)) should be invalid: PASS
:has(:not(:has(span))) should be invalid: PASS
:has(::before) should be invalid: PASS
:has(:not(::before)) should be invalid: PASS