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

Unified Diff: LayoutTests/fast/multicol/widows2.html

Issue 263203003: [New Multicolumn] Guard against zero or negative space shortage. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Remove failing test. Need to fix an additional issue first. Test will be attached to the CL fixing … 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
« no previous file with comments | « LayoutTests/fast/multicol/widows-expected.txt ('k') | LayoutTests/fast/multicol/widows2-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/multicol/widows2.html
diff --git a/LayoutTests/fast/multicol/widows2.html b/LayoutTests/fast/multicol/widows2.html
new file mode 100644
index 0000000000000000000000000000000000000000..b240319e7ffdccc15711f41f5816bf5915989a46
--- /dev/null
+++ b/LayoutTests/fast/multicol/widows2.html
@@ -0,0 +1,31 @@
+<!DOCTYPE html>
+<script src="../../resources/js-test.js"></script>
+<script>
+ description("Test column balancer behavior when widows requirements are high, and there are so many lines that there's no need for early breaks to honor widows");
+ if (window.internals)
+ internals.settings.setRegionBasedColumnsEnabled(true);
+</script>
+<p>There should be 6 lines in the first column, 5 in the second and 5 in the last one.</p>
+<div id="mc" style="-webkit-columns:3; columns:3; -webkit-column-rule:solid; line-height:50px;">
+ <div style="orphans:1; widows:5;">
+ line<br>
+ line<br>
+ line<br>
+ line<br>
+ line<br>
+ line<br>
+ line<br>
+ line<br>
+ line<br>
+ line<br>
+ line<br>
+ line<br>
+ line<br>
+ line<br>
+ line<br>
+ line<br>
+ </div>
+</div>
+<script>
+ shouldBe("mc.offsetHeight", "300");
+</script>
« no previous file with comments | « LayoutTests/fast/multicol/widows-expected.txt ('k') | LayoutTests/fast/multicol/widows2-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698