OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <style> | 2 <style> |
3 .multicol { | 3 .multicol { |
4 width: 60px; | 4 width: 60px; |
5 -webkit-column-width: 20px; | 5 -webkit-column-width: 20px; |
6 -webkit-column-gap: 0; | 6 -webkit-column-gap: 0; |
7 column-fill: auto; | 7 column-fill: auto; |
8 height: 60px; | 8 height: 60px; |
9 line-height: 20px; | 9 line-height: 20px; |
10 } | 10 } |
11 .square { | 11 .square { |
12 width: 20px; | 12 width: 20px; |
13 height: 20px; | 13 height: 20px; |
14 background: red; | 14 background: red; |
15 } | 15 } |
16 .layer { transform: translateZ(0) translateY(20px); } | 16 .layer { transform: translateZ(0) translateY(20px); } |
17 .layer .square { background: green; } | 17 .layer .square { background: green; } |
18 </style> | 18 </style> |
19 | 19 |
20 <p>There should be two small green squares below, and no red.</p> | 20 <p>There should be two small green squares vertically aligned below, and another
red square to the top-right. The second green square does not overlap the red b
ecause it is conmposited, and hence not fragmented.</p> |
21 <div class="multicol"> | 21 <div class="multicol"> |
22 <br> | 22 <br> |
23 <br> | 23 <br> |
24 <br> | 24 <br> |
25 <br> | 25 <br> |
26 <br> | 26 <br> |
27 <div class="layer"> <!-- from second to third column --> | 27 <div class="layer"> <!-- from second to third column --> |
28 <div class="square"></div> | 28 <div class="square"></div> |
29 <br> | 29 <br> |
30 <div class="square"></div> | 30 <div class="square"></div> |
31 </div> | 31 </div> |
32 <div class="square"></div> | 32 <div class="square"></div> |
33 </div> | 33 </div> |
OLD | NEW |