Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / fast / dom / shadow / dynamically-created-shadow-root.html
1 <!DOCTYPE html>
2 <body>
3 <div>
4 This tests that dynamically created ShadowRoot should be rendered correctly.
5 Can only run within DRT.
6 </div>
7 <div id="host1">Light children should not be rendered.</div>
8 <script>
9 if (window.internals) {
10     var host1 = document.querySelector('#host1');
11     var shadowRoot = host1.createShadowRoot();
12     shadowRoot.appendChild(document.createTextNode('Shadow should be rendered.'));
13 }
14 </script>
15 </body>
16 </html>