OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <script> |
| 3 onload = function() { |
| 4 var elm = document.getElementById('elm'); |
| 5 elm.offsetTop; // trigger layout |
| 6 elm.style.WebkitColumns = 'auto'; |
| 7 elm.style.columns = 'auto'; |
| 8 } |
| 9 </script> |
| 10 <p>There should be a blue <em>square</em> below.</p> |
| 11 <div id="elm" style="-webkit-columns:4; orphans:1; widows:1; width:17em; line-he
ight:4em;"> |
| 12 <div style="margin-top:100px; margin-left:1em;"> |
| 13 <div style="-webkit-column-span:all; background:blue;"> </div> |
| 14 </div> |
| 15 <div style="margin-left:1em; background:blue;"> |
| 16 <br> |
| 17 <br> |
| 18 <br> |
| 19 </div> |
| 20 </div> |
OLD | NEW |