3 <script type=
"text/javascript" src=
"../../http/tests/inspector-protocol/inspector-protocol-test.js"></script>
4 <script type=
"text/javascript" src=
"../../http/tests/inspector-protocol/css-protocol-test.js"></script>
5 <script type=
"text/javascript" src=
"../../http/tests/inspector-protocol/dom-protocol-test.js"></script>
6 <script type=
"text/javascript">
11 InspectorTest
.requestDocumentNodeId(onDocumentNodeId
);
13 function onDocumentNodeId(nodeId
)
15 documentNodeId
= nodeId
;
16 InspectorTest
.sendCommandOrDie("CSS.enable", {}, onCSSEnabled
);
19 function onCSSEnabled()
21 InspectorTest
.requestNodeId(documentNodeId
, "#shadow-host", onNodeReceived
);
24 function onNodeReceived(nodeId
)
26 InspectorTest
.loadAndDumpMatchingRulesForNode(nodeId
, InspectorTest
.completeTest
.bind(InspectorTest
));
30 <template id=
"shadow-template">
40 <div id=
"shadow-host"></div>
42 var host
= document
.querySelector("#shadow-host").createShadowRoot();
43 var template
= document
.querySelector("#shadow-template");
44 host
.appendChild(template
.content
);