- Notifications
You must be signed in to change notification settings - Fork 3.3k
/
Copy pathhost-context-parsing.html
16 lines (15 loc) · 692 Bytes
/
host-context-parsing.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<!DOCTYPE html>
<title>Test parsing of the host-context() pseudo-classes</title>
<linkrel="help" href="https://drafts.csswg.org/css-scoping/#selectordef-host-context">
<scriptsrc="/resources/testharness.js"></script>
<scriptsrc="/resources/testharnessreport.js"></script>
<scriptsrc="/css/support/parsing-testcommon.js"></script>
<script>
test_valid_selector(':host-context(.a)');
test_valid_selector(':host-context(div.a)');
test_invalid_selector(':host-context');
test_invalid_selector(':host-context()');
test_invalid_selector(':host-context(.a, .b)');
test_invalid_selector(':host-context(.a + .b)');
test_invalid_selector(':host-context(.a + .b, #c > #d)');
</script>