OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <html> |
| 3 <body onload="test();"> |
| 4 <div title="requiresThisElementToReproduce"><div id='host'></div></div> |
| 5 </body> |
| 6 <script> |
| 7 if (window.testRunner) |
| 8 testRunner.waitUntilDone(); |
| 9 |
| 10 function test() { |
| 11 var host = document.querySelector("#host"); |
| 12 |
| 13 var olderShadowRoot = host.createShadowRoot(); |
| 14 olderShadowRoot.appendChild(document.createElement("content")); |
| 15 |
| 16 var youngerShadowRoot = host.createShadowRoot(); |
| 17 var shadow = document.createElement("shadow"); |
| 18 var shadowChild = document.createElement("div"); |
| 19 youngerShadowRoot.appendChild(shadow); |
| 20 shadow.appendChild(shadowChild); |
| 21 shadowChild.appendChild(document.createTextNode('CHILD1')); |
| 22 |
| 23 document.body.offsetLeft; |
| 24 shadowChild.appendChild(document.createTextNode('CHILD2')); |
| 25 |
| 26 if (window.testRunner) |
| 27 testRunner.notifyDone(); |
| 28 } |
| 29 </script> |
| 30 </head> |
| 31 </html> |
OLD | NEW |