layout/reftests/webcomponents/dynamic-shadow-element-1.html

changeset 2
7e26c7da4463
equal deleted inserted replaced
-1:000000000000 0:2227f660f3fa
1 <!DOCTYPE HTML>
2 <html>
3 <head>
4 <script>
5 function tweak() {
6 var oldestShadow = document.getElementById('outer').createShadowRoot();
7 oldestShadow.innerHTML = 'Hello';
8
9 var olderShadow = document.getElementById('outer').createShadowRoot();
10
11 var youngerShadow = document.getElementById('outer').createShadowRoot();
12 youngerShadow.innerHTML = '<div style="background-color:green"><shadow></shadow></div>';
13
14 olderShadow.innerHTML = '<shadow></shadow> World';
15 }
16 </script>
17 </head>
18 <body onload="tweak()">
19 <div id="outer">
20 <div style="width:300px; height:100px; background-color:red;"></div>
21 </div>
22 </body>
23 </html>

mercurial