| Index: third_party/WebKit/LayoutTests/inspector-protocol/dom/resources/shadow-dom-iframe.html
|
| diff --git a/third_party/WebKit/LayoutTests/inspector-protocol/dom/resources/shadow-dom-iframe.html b/third_party/WebKit/LayoutTests/inspector-protocol/dom/resources/shadow-dom-iframe.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..f171c09699f115ef443167812f658512548d5109
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/inspector-protocol/dom/resources/shadow-dom-iframe.html
|
| @@ -0,0 +1,18 @@
|
| +<html>
|
| +<head>
|
| +<template id="shadow-template">
|
| +<div style="color: red;"><h1>Hello from the shadow dom!</h1></div>
|
| +</template>
|
| +</head>
|
| +<body onload="addShadowDOM()">
|
| +<div id="element_in_an_iframe"></div>
|
| +<script>
|
| +function addShadowDOM() {
|
| + var host = document.getElementById("element_in_an_iframe").createShadowRoot();
|
| + var template = document.querySelector("#shadow-template");
|
| + host.appendChild(template.content);
|
| + template.remove();
|
| +}
|
| +</script>
|
| +</body>
|
| +</html>
|
|
|