OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <script> | 2 <script> |
3 onload = function() { | 3 onload = function() { |
4 var elm = document.getElementById('elm'); | 4 var elm = document.getElementById('elm'); |
5 elm.offsetTop; // trigger layout | 5 elm.offsetTop; // trigger layout |
6 elm.style.WebkitColumns = 'auto'; | 6 elm.style.WebkitColumns = 'auto'; |
7 elm.style.columns = 'auto'; | 7 elm.style.columns = 'auto'; |
8 elm.style.overflow = '-webkit-paged-x'; | 8 elm.style.overflow = '-webkit-paged-x'; |
9 } | 9 } |
10 </script> | 10 </script> |
11 <p>There should be a blue <em>square</em> below, and no scrollbar.</p> | 11 <p>There should be a blue <em>square</em> below, and no scrollbar.</p> |
12 <div id="elm" style="-webkit-columns:4; columns:4; orphans:1; widows:1; width:16
em; line-height:4em; background:blue;"> | 12 <div id="elm" style="-webkit-columns:4; columns:4; orphans:1; widows:1; width:16
em; line-height:4em; background:blue;"> |
13 <br> | 13 <br> |
14 <br> | 14 <br> |
15 <br> | 15 <br> |
16 <br> | 16 <br> |
17 </div> | 17 </div> |
OLD | NEW |