OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <style> |
| 3 .multicol { |
| 4 margin: 3em 0; |
| 5 width: 60px; |
| 6 -webkit-column-width: 20px; |
| 7 -webkit-column-gap: 0; |
| 8 column-fill: auto; |
| 9 height: 60px; |
| 10 } |
| 11 .square { |
| 12 width: 20px; |
| 13 height: 20px; |
| 14 background: green; |
| 15 } |
| 16 .layer { transform: translateZ(0); } |
| 17 </style> |
| 18 |
| 19 <p>There should be two green squares below.</p> |
| 20 <div class="multicol"> |
| 21 <div class="square"></div> |
| 22 <div class="square"></div> |
| 23 <div class="layer"> <!-- from first to second column --> |
| 24 <div class="square"></div> |
| 25 <div class="square"></div> |
| 26 </div> |
| 27 <div class="square"></div> |
| 28 <div class="layer"> <!-- from second to third column --> |
| 29 <div class="square"></div> |
| 30 <div class="square"></div> |
| 31 </div> |
| 32 <div class="square"></div> |
| 33 <div class="square"></div> |
| 34 </div> |
| 35 |
| 36 <div class="multicol"> |
| 37 <div class="square"></div> |
| 38 <div class="square"></div> |
| 39 <div class="layer"> <!-- from first to third column --> |
| 40 <div class="square"></div> |
| 41 <div class="square"></div> |
| 42 <div class="square"></div> |
| 43 <div class="square"></div> |
| 44 <div class="square"></div> |
| 45 </div> |
| 46 <div class="square"></div> |
| 47 <div class="square"></div> |
| 48 </div> |
OLD | NEW |