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 #test1 .layer { will-change: transform; } |
| 17 #test2 .layer { will-change: opacity; } |
| 18 #test3 .layer { will-change: top; position: relative; } |
| 19 </style> |
| 20 |
| 21 <p>There should be three green squares below.</p> |
| 22 <div id="test1" class="multicol"> |
| 23 <div class="layer"> <!-- first column --> |
| 24 <div class="square"></div> |
| 25 </div> |
| 26 <div class="square"></div> |
| 27 <div class="layer"> <!-- from first to second column --> |
| 28 <div class="square"></div> |
| 29 <div class="square"></div> |
| 30 </div> |
| 31 <div class="square"></div> |
| 32 <div class="layer"> <!-- from second to third column --> |
| 33 <div class="square"></div> |
| 34 <div class="square"></div> |
| 35 <div class="square"></div> |
| 36 </div> |
| 37 <div class="square"></div> |
| 38 </div> |
| 39 |
| 40 <div id="test2" class="multicol"> |
| 41 <div class="layer"> <!-- first column --> |
| 42 <div class="square"></div> |
| 43 </div> |
| 44 <div class="square"></div> |
| 45 <div class="layer"> <!-- from first to second column --> |
| 46 <div class="square"></div> |
| 47 <div class="square"></div> |
| 48 </div> |
| 49 <div class="square"></div> |
| 50 <div class="layer"> <!-- from second to third column --> |
| 51 <div class="square"></div> |
| 52 <div class="square"></div> |
| 53 <div class="square"></div> |
| 54 </div> |
| 55 <div class="square"></div> |
| 56 </div> |
| 57 |
| 58 <div id="test3" class="multicol"> |
| 59 <div class="layer"> <!-- first column --> |
| 60 <div class="square"></div> |
| 61 </div> |
| 62 <div class="square"></div> |
| 63 <div class="layer"> <!-- from first to second column --> |
| 64 <div class="square"></div> |
| 65 <div class="square"></div> |
| 66 </div> |
| 67 <div class="square"></div> |
| 68 <div class="layer"> <!-- from second to third column --> |
| 69 <div class="square"></div> |
| 70 <div class="square"></div> |
| 71 <div class="square"></div> |
| 72 </div> |
| 73 <div class="square"></div> |
| 74 </div> |
OLD | NEW |