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

Unified Diff: LayoutTests/fast/multicol/widows.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 | « no previous file | LayoutTests/fast/multicol/widows-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/multicol/widows.html
diff --git a/LayoutTests/fast/multicol/widows.html b/LayoutTests/fast/multicol/widows.html
new file mode 100644
index 0000000000000000000000000000000000000000..e99a5ede1226a9106358e9e622b45102c8182d26
--- /dev/null
+++ b/LayoutTests/fast/multicol/widows.html
@@ -0,0 +1,22 @@
+<!DOCTYPE html>
+<script src="../../resources/js-test.js"></script>
+<script>
+ description("Test column balancer behavior when widows requirements are high, and there's need for an early break to honor widows");
+ if (window.internals)
+ internals.settings.setRegionBasedColumnsEnabled(true);
+</script>
+<p>The 5 lines should all be in the second column.</p>
+<div id="mc" style="-webkit-columns:3; columns:3; -webkit-column-rule:solid; line-height:50px; orphans:1; widows:5;">
+ <span id="inFirstColumn"><br></span>
+ <span id="first">line<br></span>
+ line<br>
+ line<br>
+ line<br>
+ <span id="last">line<br></span>
+</div>
+<script>
+ shouldBe("mc.offsetHeight", "250");
+ shouldBe("first.offsetTop", "inFirstColumn.offsetTop");
+ shouldBeGreaterThan("first.offsetLeft", "inFirstColumn.offsetLeft");
+ shouldBe("last.offsetLeft", "first.offsetLeft");
+</script>
« no previous file with comments | « no previous file | LayoutTests/fast/multicol/widows-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698