OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <title>Change regular block to multicol</title> | 4 <title>Change regular block to multicol</title> |
5 <script> | 5 <script> |
6 if (window.internals) | |
7 internals.settings.setRegionBasedColumnsEnabled(true); | |
8 function test() { | 6 function test() { |
9 var elm = document.getElementById('elm'); | 7 var elm = document.getElementById('elm'); |
10 elm.offsetTop; // trigger layout | 8 elm.offsetTop; // trigger layout |
11 elm.style.WebkitColumns = 4; | 9 elm.style.WebkitColumns = 4; |
12 elm.style.columns = 4; | 10 elm.style.columns = 4; |
13 } | 11 } |
14 </script> | 12 </script> |
15 </head> | 13 </head> |
16 <body onload="test()"> | 14 <body onload="test()"> |
17 <p>You should see the word 'PASS' below.</p> | 15 <p>You should see the word 'PASS' below.</p> |
18 <div style="font-family:monospace; float:left;"> | 16 <div style="font-family:monospace; float:left;"> |
19 <div id="elm" style="-webkit-column-gap:0; column-gap:0; orphans:1;
widows:1;"> | 17 <div id="elm" style="-webkit-column-gap:0; column-gap:0; orphans:1;
widows:1;"> |
20 P<br> | 18 P<br> |
21 A<br> | 19 A<br> |
22 S<br> | 20 S<br> |
23 S<br> | 21 S<br> |
24 </div> | 22 </div> |
25 </div> | 23 </div> |
26 </body> | 24 </body> |
27 </html> | 25 </html> |
OLD | NEW |