OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <html> |
| 3 <head> |
| 4 <title>balancing multicol with max-height</title> |
| 5 <script src="../../js/resources/js-test-pre.js"></script> |
| 6 <script> |
| 7 if (window.testRunner) |
| 8 testRunner.dumpAsText(); |
| 9 if (window.internals) |
| 10 internals.settings.setRegionBasedColumnsEnabled(true); |
| 11 </script> |
| 12 <style> |
| 13 img { display:block; height:123px; } |
| 14 </style> |
| 15 </head> |
| 16 <body> |
| 17 <p>There should be a 2 by 2 image grid below.</p> |
| 18 <div id="mc" style="-webkit-columns:3; columns:3; orphans:1; widows:1; color
:olive; background:olive;"> |
| 19 <img src="../resources/ipad.jpg"> |
| 20 <img src="../resources/ipad.jpg"> |
| 21 <img src="../resources/ipad.jpg"> |
| 22 <img src="../resources/ipad.jpg"> |
| 23 </div> |
| 24 <script> |
| 25 shouldBe("mc.offsetHeight", "246"); |
| 26 shouldBe("document.documentElement.scrollWidth", "document.documentElement
.clientWidth"); |
| 27 </script> |
| 28 <script src="../../js/resources/js-test-post.js"></script> |
| 29 </body> |
| 30 </html> |
OLD | NEW |