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