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

Unified Diff: third_party/WebKit/LayoutTests/fast/dom/shadow/content-reprojection-recalc.html

Issue 1688483003: Added redistribution recalc test. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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/fast/dom/shadow/content-reprojection-recalc-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/fast/dom/shadow/content-reprojection-recalc.html
diff --git a/third_party/WebKit/LayoutTests/fast/dom/shadow/content-reprojection-recalc.html b/third_party/WebKit/LayoutTests/fast/dom/shadow/content-reprojection-recalc.html
new file mode 100644
index 0000000000000000000000000000000000000000..a486de2b851ed79fc5a22b6dd61b0473c1af3d54
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/dom/shadow/content-reprojection-recalc.html
@@ -0,0 +1,25 @@
+<!DOCTYPE html>
+<script src="../../../resources/js-test.js"></script>
+<div id="host">
+ <div></div>
+ <div></div>
+ <div></div>
+ <div></div>
+ <div></div>
+ <div></div>
+</div>
+<script>
+description("Redistribution into same position should not cause style recalc");
+
+shouldBeDefined("window.internals");
+
+var root = host.createShadowRoot();
+root.innerHTML = "<content></content>";
+
+host.offsetTop;
+
+host.appendChild(document.createElement("div"));
+
+shouldBe("internals.updateStyleAndReturnAffectedElementCount()", "1");
+
+</script>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/dom/shadow/content-reprojection-recalc-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698