blob: 9cf989fcbeb7409208199e5ad96211a353e847e7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Selectors: The relational pseudo-class (disallow nesting :has() inside :has())</title>
<link rel="author" title="Byungwoo Lee" href="mailto:blee@igalia.com">
<link rel="help" href="https://drafts.csswg.org/selectors-4/#has-pseudo">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/css/support/parsing-testcommon.js"></script>
<script>
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>
|