| Index: third_party/WebKit/LayoutTests/fragmentation/change-fragmentainer-height-inline-float.html
|
| diff --git a/third_party/WebKit/LayoutTests/fragmentation/change-fragmentainer-height-inline-float.html b/third_party/WebKit/LayoutTests/fragmentation/change-fragmentainer-height-inline-float.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..393dffd076080d49151078163e0f0a41a67c2f13
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/fragmentation/change-fragmentainer-height-inline-float.html
|
| @@ -0,0 +1,21 @@
|
| +<!DOCTYPE html>
|
| +<style>body { overflow:scroll; }</style>
|
| +<p>There should be a hotpink square in the bottom left corner of a olive rectangle.</p>
|
| +<div id="multicol" style="position:relative; columns:2; column-fill:auto; orphans:2; widows:2; line-height:20px; height:45px; background:olive;">
|
| + <br>
|
| + <div id="elm" style="float:left; width:40px; background:hotpink;"><br><br></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");
|
| + assert_equals(elm.offsetTop, 0);
|
| + assert_equals(elm.offsetHeight, 40);
|
| + multicol.style.height = "60px";
|
| + // Now there's room for the float in the first column
|
| + assert_equals(elm.offsetTop, 20);
|
| + assert_equals(elm.offsetHeight, 40);
|
| +}, "No crash or assertion failure.");
|
| +</script>
|
|
|