Skip to content

Commit

Permalink
Make :has() unforgiving (#37392)
Browse files Browse the repository at this point in the history
  • Loading branch information
tabatkins authored Dec 8, 2022
1 parent 41ee6a1 commit 2ae111b
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<script src="/resources/testharnessreport.js"></script>
<script src="/css/support/parsing-testcommon.js"></script>
<script>
test_valid_selector('.a:has(.b:has(.c))', '.a:has()');
test_valid_selector('.a:has(.b:has(.c), .d)', '.a:has(.d)');
test_valid_selector('.a:has(.b:is(.c:has(.d) .e))', '.a:has(.b:is())');
test_invalid_selector('.a:has(.b:has(.c))');
test_valid_selector('.a:has(:is(.b:has(.c)))', '.a:has(:is())');
test_valid_selector('.a:has(:is(.b:has(.c), .d))', '.a:has(:is(.d))');
</script>

0 comments on commit 2ae111b

Please sign in to comment.