Bug 1804569 [wpt PR 37391] - Make :has() unforgiving, a=testonly

Automatic update from web-platform-tests
Make :has() unforgiving (#37391)

--

wpt-commits: 41ee6a14369e2aaa0f7283138449051e2b5e7725
wpt-pr: 37391
This commit is contained in:
Tab Atkins Jr 2022-12-11 21:33:28 +00:00 committed by moz-wptsync-bot
parent 53ed7588cd
commit 549758033a

View File

@ -30,8 +30,12 @@
test_valid_selector('.a:has(.b):has(.c)');
test_valid_selector('*|*:has(*)', ':has(*)');
test_valid_selector(':has(*|*)', ':has(*)');
test_valid_selector('.a:has()', '.a:has()');
test_invalid_selector(':has');
test_invalid_selector('.a:has');
test_invalid_selector('.a:has b');
/* :has() is unforgiving, but :is() can still forgive */
test_invalid_selector(':has()');
test_invalid_selector(':has(123)');
test_invalid_selector(':has(.a, 123)');
test_valid_selector(':has(:is(.a, 123))', ':has(:is(.a))');
</script>