OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 | 2 |
3 <html> | 3 <html> |
4 <body> | 4 <body> |
5 | 5 |
6 | 6 |
7 <div id="host1"> | 7 <div id="host1"> |
8 <div class="selected">A</div> | 8 <div class="selected">A</div> |
9 <div>B</div> | 9 <div>B</div> |
10 <div>C</div> | 10 <div>C</div> |
11 <div class="selected">D</div> | 11 <div class="selected">D</div> |
12 <div>E</div> | 12 <div>E</div> |
13 <div id="F">F</div> | 13 <div id="F">F</div> |
14 </div> | 14 </div> |
15 | 15 |
16 <script> | 16 <script> |
17 if (window.testRunner) | 17 if (window.testRunner) |
18 testRunner.waitUntilDone(); | 18 testRunner.waitUntilDone(); |
19 | 19 |
20 var shadowRoot1 = host1.createShadowRoot(); | 20 var shadowRoot1 = host1.createShadowRoot(); |
21 shadowRoot1.innerHTML = '<div id="host2"><shadow><content></content></shadow></d
iv>'; | 21 shadowRoot1.innerHTML = '<div id="host2"><shadow></shadow></div>'; |
22 | 22 |
23 var host2 = shadowRoot1.getElementById('host2'); | 23 var host2 = shadowRoot1.getElementById('host2'); |
24 var shadowRoot2 = host2.createShadowRoot(); | 24 var shadowRoot2 = host2.createShadowRoot(); |
25 shadowRoot2.innerHTML = '<content select=".selected"></content>'; | 25 shadowRoot2.innerHTML = '<content select=".selected"></content>'; |
26 | 26 |
27 setTimeout(function() { | 27 setTimeout(function() { |
28 F.className = 'selected'; | 28 F.className = 'selected'; |
29 if (window.testRunner) | 29 if (window.testRunner) |
30 testRunner.notifyDone(); | 30 testRunner.notifyDone(); |
31 }, 0); | 31 }, 0); |
32 </script> | 32 </script> |
33 </html> | 33 </html> |
OLD | NEW |