Index: third_party/WebKit/LayoutTests/fragmentation/change-fragmentainer-height-line-float.html |
diff --git a/third_party/WebKit/LayoutTests/fragmentation/change-fragmentainer-height-line-float.html b/third_party/WebKit/LayoutTests/fragmentation/change-fragmentainer-height-line-float.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..d307aa010be7bf4882ed6b192cd65a6de0f31e7e |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/fragmentation/change-fragmentainer-height-line-float.html |
@@ -0,0 +1,20 @@ |
+<!DOCTYPE html> |
+<p>There should be a blue square below.</p> |
+<div id="multicol" style="position:relative; columns:2; column-fill:auto; line-height:20px; width:100px; height:100px;"> |
+ <br> |
+ <div id="elm" style="float:left; width:20px; background:blue;"> |
+ <div><br></div> |
+ </div> |
+</div> |
+<script src="../resources/testharness.js"></script> |
+<script src="../resources/testharnessreport.js"></script> |
+<script> |
+test(() => { |
+ var multicol = document.getElementById("multicol"); |
+ var elm = document.getElementById("elm"); |
+ document.body.offsetTop; |
+ multicol.style.height = "30px"; |
+ assert_equals(elm.offsetTop, 0); |
+ assert_equals(elm.offsetHeight, 20); |
+}, "Push float to next column"); |
+</script> |