host-context-parsing.html (692B)
1 <!DOCTYPE html> 2 <title>Test parsing of the host-context() pseudo-classes</title> 3 <link rel="help" href="https://drafts.csswg.org/css-scoping/#selectordef-host-context"> 4 <script src="/resources/testharness.js"></script> 5 <script src="/resources/testharnessreport.js"></script> 6 <script src="/css/support/parsing-testcommon.js"></script> 7 <script> 8 test_valid_selector(':host-context(.a)'); 9 test_valid_selector(':host-context(div.a)'); 10 11 test_invalid_selector(':host-context'); 12 test_invalid_selector(':host-context()'); 13 test_invalid_selector(':host-context(.a, .b)'); 14 test_invalid_selector(':host-context(.a + .b)'); 15 test_invalid_selector(':host-context(.a + .b, #c > #d)'); 16 </script>