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

Unified Diff: third_party/WebKit/LayoutTests/shadow-dom/layout.html

Issue 2086013003: Make sure to lazyReattach a distributed node if it is already attached (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 months 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/shadow-dom/layout-expected.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/shadow-dom/layout.html
diff --git a/third_party/WebKit/LayoutTests/shadow-dom/layout.html b/third_party/WebKit/LayoutTests/shadow-dom/layout.html
new file mode 100644
index 0000000000000000000000000000000000000000..3736bf06a502d615b59b2866f1d6dc5207767cd2
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/shadow-dom/layout.html
@@ -0,0 +1,17 @@
+<!DOCTYPE html>
+<script src='resources/shadow-dom.js'></script>
+<div id='host'>
+ <template data-mode='open'>
+ <style>
+ div {
+ background-color: green;
+ }
+ </style>
+ <div><slot></slot></div>
+ </template>
+ <div id='hostchild'>Hello</div>
+</div>
+<script>
+hostchild.offsetTop; // Update layout before calling attachShadow() so that #hostchild has a layout object
+convertTemplatesToShadowRootsWithin(host);
+</script>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/shadow-dom/layout-expected.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698