OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <title>auto-height multicol</title> | 4 <title>auto-height multicol</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 </head> | 10 </head> |
13 <body> | 11 <body> |
14 <p>There should be two identical boxes below.</p> | 12 <p>There should be two identical boxes below.</p> |
15 <div id="mc" style="-webkit-columns:3; columns:3; orphans:1; widows:1; color
:olive; background:olive;"> | 13 <div id="mc" style="-webkit-columns:3; columns:3; orphans:1; widows:1; color
:olive; background:olive;"> |
16 <div style="font-size:1.3em;">line</div> | 14 <div style="font-size:1.3em;">line</div> |
17 <div>line</div> | 15 <div>line</div> |
18 <div>line</div> | 16 <div>line</div> |
19 <div>line</div> | 17 <div>line</div> |
20 <div>line</div> | 18 <div>line</div> |
21 <div>line</div> | 19 <div>line</div> |
22 <div>line</div> | 20 <div>line</div> |
23 <div>line</div> | 21 <div>line</div> |
24 <div>line</div> | 22 <div>line</div> |
25 </div> | 23 </div> |
26 <div id="ref" style="margin-top:1em; color:olive; background:olive;"> | 24 <div id="ref" style="margin-top:1em; color:olive; background:olive;"> |
27 <div style="font-size:1.3em;">line</div> | 25 <div style="font-size:1.3em;">line</div> |
28 <div>line</div> | 26 <div>line</div> |
29 <div>line</div> | 27 <div>line</div> |
30 </div> | 28 </div> |
31 <script> | 29 <script> |
32 shouldBe("mc.offsetHeight", "ref.offsetHeight"); | 30 shouldBe("mc.offsetHeight", "ref.offsetHeight"); |
33 </script> | 31 </script> |
34 </body> | 32 </body> |
35 </html> | 33 </html> |
OLD | NEW |