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

Unified Diff: LayoutTests/fast/multicol/balance-unbreakable.html

Issue 261383004: [New Multicolumn] Improve balancing for border/padding and empty block content. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Address code review issues raised together with lgtm Created 6 years, 7 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
Index: LayoutTests/fast/multicol/balance-unbreakable.html
diff --git a/LayoutTests/fast/multicol/balance-unbreakable.html b/LayoutTests/fast/multicol/balance-unbreakable.html
new file mode 100644
index 0000000000000000000000000000000000000000..7dfdcdb3a4985fd15d9f1fd8d5c625a378d6cbc3
--- /dev/null
+++ b/LayoutTests/fast/multicol/balance-unbreakable.html
@@ -0,0 +1,22 @@
+<!DOCTYPE html>
+<script src="../../resources/js-test.js"></script>
+<script>
+ if (window.internals)
+ internals.settings.setRegionBasedColumnsEnabled(true);
+</script>
+<p>There should be a <em>square</em> with some stuff inside below.</p>
+<div id="console"></div>
+<div id="mc" style="-webkit-columns:3; columns:3; width:7em; float:left; orphans:1; widows:1; background:olive;">
+ <div style="line-height:4em;">line</div>
+ <div style="line-height:8em;">line</div>
+ <img alt="x" style="display:block; height:2em;">
+ <div style="line-height:4em;">line</div>
+ <div style="line-height:10em;">line</div>
+ <div style="line-height:2em;">line</div>
+ <div style="line-height:6em;">line</div>
+</div>
+<div style="float:left; width:7em; height:14em; background:olive;"></div>
+<script>
+ description("Tests that an image at a column boundary is recorded properly for balancing");
+ shouldBe("mc.offsetHeight", "224");
+</script>

Powered by Google App Engine
This is Rietveld 408576698