Index: third_party/WebKit/LayoutTests/fast/multicol/relayout-and-push-float.html |
diff --git a/third_party/WebKit/LayoutTests/fast/multicol/relayout-and-push-float.html b/third_party/WebKit/LayoutTests/fast/multicol/relayout-and-push-float.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..05e2263b14c9cc4cc2dc456c59333ee2a57a907b |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/fast/multicol/relayout-and-push-float.html |
@@ -0,0 +1,23 @@ |
+<!DOCTYPE html> |
+<script src="../../resources/check-layout.js"></script> |
+<p>Test that re-laying out a float and at the same time pushing it downwards properly moves it to |
+ next column, and that we don't get a residual pagination strut before the second float.</p> |
+<p>There should be a blue square below.</p> |
+<div id="container" style="position:relative; -webkit-columns:2; -webkit-column-gap:0; column-fill:auto; width:80px; height:50px; line-height:20px;"> |
+ <span id="newElm" style="display:none;"> |
+ <br> |
+ </span> |
+ <br> |
+ <div id="firstFloat" style="float:left; width:30px; background:blue;" data-offset-y="0"> |
+ <br> |
+ </div> |
+ <div style="float:left; width:40px; background:blue;" data-offset-y="20"> |
+ <br> |
+ </div> |
+</div> |
+<script> |
+ document.body.offsetTop; |
+ document.getElementById("newElm").style.display = "inline"; |
+ document.getElementById("firstFloat").style.paddingLeft = "10px"; |
+ checkLayout("#container"); |
+</script> |