host-in-host-selector.html (524B)
1 <!DOCTYPE html> 2 <title>CSS Scoping: :host(:host)</title> 3 <link rel="help" href="https://drafts.csswg.org/css-scoping/#host-selector"> 4 <script src="/resources/testharness.js"></script> 5 <script src="/resources/testharnessreport.js"></script> 6 <div id="host"> 7 <template shadowrootmode="open"> 8 <style> 9 /* Should not match */ 10 :host(:host) { 11 --x:FAIL; 12 } 13 </style> 14 </template> 15 </div> 16 <script> 17 test(() => { 18 assert_equals(getComputedStyle(host).getPropertyValue('--x'), ''); 19 }); 20 </script>