3 <script src="../../../http/tests/inspector/inspector-test.js"></script>
4 <script src="../../../http/tests/inspector/elements-test.js"></script>
7 function createShadowRoot()
9 var template = document.querySelector('#tmpl');
10 var root = document.querySelector('#host').webkitCreateShadowRoot();
11 root.appendChild(template.content.cloneNode(true));
16 InspectorTest.runTestSuite([
17 function testInit(next)
19 WebInspector.settings.showShadowDOM.set(true);
20 InspectorTest.evaluateInPage("createShadowRoot()", callback);
23 InspectorTest.selectNodeAndWaitForStyles("inner", next);
27 function testDumpStyles(next)
29 InspectorTest.dumpSelectedElementStyles(true);
37 <body onload="runTest()">
39 This test checks that style sheets hosted inside shadow roots
44 <style> .red { color: red; } </style>
45 <div id="inner" class="red">hi!</div>