OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <!-- | 2 <!-- |
3 Distributed under both the W3C Test Suite License [1] and the W3C | 3 Distributed under both the W3C Test Suite License [1] and the W3C |
4 3-clause BSD License [2]. To contribute to a W3C Test Suite, see the | 4 3-clause BSD License [2]. To contribute to a W3C Test Suite, see the |
5 policies and contribution forms [3]. | 5 policies and contribution forms [3]. |
6 | 6 |
7 [1] http://www.w3.org/Consortium/Legal/2008/04-testsuite-license | 7 [1] http://www.w3.org/Consortium/Legal/2008/04-testsuite-license |
8 [2] http://www.w3.org/Consortium/Legal/2008/03-bsd-license | 8 [2] http://www.w3.org/Consortium/Legal/2008/03-bsd-license |
9 [3] http://www.w3.org/2004/10/27-testcases | 9 [3] http://www.w3.org/2004/10/27-testcases |
10 --> | 10 --> |
(...skipping 19 matching lines...) Expand all Loading... |
30 <script> | 30 <script> |
31 var shadowHost = document.getElementById('shadow-host'); | 31 var shadowHost = document.getElementById('shadow-host'); |
32 var shadowRoot = shadowHost.attachShadow({mode: 'open'}); | 32 var shadowRoot = shadowHost.attachShadow({mode: 'open'}); |
33 var style = document.createElement('style'); | 33 var style = document.createElement('style'); |
34 style.innerHTML = 'div { background: red }'; | 34 style.innerHTML = 'div { background: red }'; |
35 | 35 |
36 shadowRoot.appendChild(style); | 36 shadowRoot.appendChild(style); |
37 </script> | 37 </script> |
38 </body> | 38 </body> |
39 </html> | 39 </html> |
OLD | NEW |