Chromium Code Reviews| 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..c9147a8c79fe924567afd67ba91c4fb9e91930da |
| --- /dev/null |
| +++ b/LayoutTests/fast/multicol/widows.html |
| @@ -0,0 +1,23 @@ |
| +<!DOCTYPE html> |
| +<script src="../../resources/js-test.js"></script> |
| +<script> |
| + if (window.testRunner) |
| + testRunner.dumpAsText(); |
|
rune
2014/05/06 09:00:06
Unnecessary.
mstensho (USE GERRIT)
2014/05/06 09:17:40
Done.
|
| + 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> |