blob: 7463a695963e003c231fc5d5f0b9479a7064488f [file] [log] [blame]
<!DOCTYPE html>
<body>
<div>
This tests that dynamically created ShadowRoot should be rendered correctly.
Can only run within DRT.
</div>
<div id="host1">Light children should not be rendered.</div>
<script>
if (window.internals) {
var host1 = document.querySelector('#host1');
var shadowRoot = window.internals.ensureShadowRoot(host1);
shadowRoot.appendChild(document.createTextNode('Shadow should be rendered.'));
}
</script>
</body>
</html>