host-multiple-002.html (559B)
1 <!doctype html> 2 <meta charset="utf-8"> 3 <title>:host</title> 4 <link rel="help" href="https://drafts.csswg.org/selectors/#featureless"> 5 <link rel="match" href="/css/reference/ref-filled-green-100px-square-only.html"> 6 <p>Test passes if there is a filled green square.</p> 7 <div id=host> 8 </div> 9 <script> 10 host.attachShadow({mode: "open"}).innerHTML = ` 11 <style> 12 :host { 13 width: 100px; 14 height: 100px; 15 background-color: red; 16 } 17 :not(:not(:host)):host { 18 background-color: green; 19 } 20 </style> 21 `; 22 23 </script>