Index: LayoutTests/fast/multicol/newmulticol/balance-maxheight2.html |
diff --git a/LayoutTests/fast/multicol/newmulticol/balance-maxheight2.html b/LayoutTests/fast/multicol/newmulticol/balance-maxheight2.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..386625ef6917261693d98485bcbd46089e8c9eb4 |
--- /dev/null |
+++ b/LayoutTests/fast/multicol/newmulticol/balance-maxheight2.html |
@@ -0,0 +1,32 @@ |
+<!DOCTYPE html> |
+<html> |
+ <head> |
+ <title>balancing multicol with max-height</title> |
+ <script src="../../js/resources/js-test-pre.js"></script> |
+ <script> |
+ if (window.testRunner) |
+ testRunner.dumpAsText(); |
+ if (window.internals) |
+ internals.settings.setRegionBasedColumnsEnabled(true); |
+ </script> |
+ </head> |
+ <body> |
+ <p>There should be two identical boxes below.</p> |
+ <div id="mc" style="-webkit-columns:3; columns:3; max-height:2em; orphans:1; widows:1; color:olive; background:olive;"> |
+ <br> |
+ <br> |
+ <br> |
+ <br> |
+ </div> |
+ <div id="ref" style="margin-top:1em; height:2em; color:olive; background:olive;"> |
+ <br> |
+ </div> |
+ <script> |
+ shouldBe("mc.offsetHeight", "ref.offsetHeight"); |
+ // There should be horizontal overflow: |
+ shouldNotBe("document.documentElement.scrollWidth", "document.documentElement.clientWidth"); |
+ shouldBeGreaterThanOrEqual("document.documentElement.scrollWidth", "document.documentElement.clientWidth"); |
+ </script> |
+ <script src="../../js/resources/js-test-post.js"></script> |
+ </body> |
+</html> |