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

@ -5,6 +5,11 @@
test(() => {
let selectors = [
":has(:yakthonk)",
":has(:not(:yakthonk))",
":has(:has(span))",
":has(:not(:has(span)))",
":has(::before)",
":has(:not(::before))",
];
let style = document.getElementById("style");