OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <script> |
| 3 onload = function() { |
| 4 var elm = document.getElementById('elm'); |
| 5 document.body.offsetTop; // trigger layout |
| 6 elm.style.webkitColumnSpan = 'all'; |
| 7 elm.style.columnSpan = 'all'; |
| 8 } |
| 9 </script> |
| 10 <p>Below there should be a blue box, then a yellow box, then a blue box again.</
p> |
| 11 <div style="-webkit-columns:2; columns:2; -webkit-column-gap:0; column-gap:0; or
phans:1; widows:1; line-height:2em; background:blue;"> |
| 12 <div id="elm" style="margin:4em 0; background:yellow;"><br><br></div> |
| 13 </div> |
OLD | NEW |