Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(57)

Unified Diff: third_party/WebKit/LayoutTests/fast/multicol/balance-float-in-inline.html

Issue 2453743002: The column balancer needs to look inside inlines. (Closed)
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/ColumnBalancer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/ColumnBalancer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698