OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <style> |
| 3 .square { break-inside:avoid; width:20px; height:20px; background:hotpink; } |
| 4 </style> |
| 5 <p>There should be five consecutive squares below, from left to right: hotpink,
blue, hotpink, blue, hotpink.</p> |
| 6 <div id="multicol" style="columns:1; background:blue;"> |
| 7 <div class="square"></div> |
| 8 <div class="square" style="column-span:all;" id="spanner"></div> |
| 9 <div class="square"></div> |
| 10 </div> |
| 11 <script> |
| 12 document.body.offsetTop; |
| 13 document.getElementById("multicol").style.writingMode = "tb-rl"; |
| 14 document.getElementById("spanner").style.margin = "0 20px"; |
| 15 </script> |
OLD | NEW |