Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3)

Unified Diff: third_party/WebKit/LayoutTests/inspector-protocol/dom/resources/shadow-dom-iframe.html

Issue 2495623002: Rename traverseFrames to pierce and traverse shadow dom too. (Closed)
Patch Set: Rename traverseFrames to pierce. Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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>

Powered by Google App Engine
This is Rietveld 408576698