Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / http / tests / inspector-enabled / shadow-dom-rules.html
blobc5a904bba3ca701c264a4966cba641ff1f72e5e4
1 <html>
2 <head>
3 <script src="../inspector/inspector-test.js"></script>
4 <script src="../inspector/elements-test.js"></script>
5 <script>
7 function createShadowRoot()
9 if (window.testRunner)
10 testRunner.waitUntilDone();
11 var template = document.querySelector('#tmpl');
12 var root = document.querySelector('#host').createShadowRoot();
13 root.appendChild(template.content.cloneNode(true));
14 if (window.testRunner)
15 testRunner.showWebInspector();
16 runTest();
19 function test()
21 InspectorTest.runTestSuite([
22 function testInit(next)
24 InspectorTest.selectNodeAndWaitForStyles("inner", next);
27 function testDumpStyles(next)
29 InspectorTest.dumpSelectedElementStyles(true);
30 next();
32 ]);
34 </script>
35 </head>
37 <body onload="createShadowRoot()">
38 <p>
39 This test checks that style sheets hosted inside shadow roots
40 could be inspected.
41 </p>
42 <div id="host"></div>
43 <template id="tmpl">
44 <style> .red { color: red; } </style>
45 <div id="inner" class="red">hi!</div>
46 </template>
47 </body>
48 </html>