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> |