Index: third_party/WebKit/LayoutTests/fast/multicol/balance-float-in-inline.html |
diff --git a/third_party/WebKit/LayoutTests/fast/multicol/balance-float-in-inline.html b/third_party/WebKit/LayoutTests/fast/multicol/balance-float-in-inline.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..30c8a65c4caf4f7313ca1a1c18dd24a19c39bf67 |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/fast/multicol/balance-float-in-inline.html |
@@ -0,0 +1,19 @@ |
+<!DOCTYPE html> |
+<p>There should be a blue square below.</p> |
+<div style="position:relative; columns:4; column-gap:0; width:600px;"> |
+ <br> |
+ <span> |
+ <div id="float" style="float:right; break-inside:avoid; width:150px; height:150px; background:blue;"></div> |
+ </span> |
+</div> |
+<script src="../../resources/testharness.js"></script> |
+<script src="../../resources/testharnessreport.js"></script> |
+<script> |
+test(() => { |
+ var elm = document.getElementById("float"); |
+ assert_equals(elm.offsetTop, 0); |
+ assert_equals(elm.offsetLeft, 150); |
+ assert_equals(elm.offsetWidth, 150); |
+ assert_equals(elm.offsetHeight, 150); |
+}, "Unbreakable float inside inline."); |
+</script> |