OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <style> | 2 <style> |
3 .multicol { | 3 .multicol { |
4 margin: 3em 0; | 4 margin: 3em 0; |
5 width: 60px; | 5 width: 60px; |
6 -webkit-column-width: 20px; | 6 -webkit-column-width: 20px; |
7 -webkit-column-gap: 0; | 7 -webkit-column-gap: 0; |
8 column-fill: auto; | 8 column-fill: auto; |
9 height: 60px; | 9 height: 60px; |
10 } | 10 } |
11 .square { | 11 .square { |
12 width: 20px; | 12 width: 20px; |
13 height: 20px; | 13 height: 20px; |
14 background: green; | 14 background: green; |
15 } | 15 } |
16 | 16 |
17 .layer { transform: translateZ(0); } | 17 .layer { transform: translateZ(0); } |
18 | 18 |
19 </style> | 19 </style> |
20 <p>There should be two green squares below.</p> | 20 <p>If no compositing were present, there should be two green squares below. Sinc
e some elements are composited, and therefore not fragmented, the output is diff
erent.</p> |
21 <!-- composited layer in composited layer: --> | 21 <!-- composited layer in composited layer: --> |
22 <div class="multicol"> | 22 <div class="multicol"> |
23 <div class="square"></div> | 23 <div class="square"></div> |
24 <div class="layer"> <!-- from first to second column --> | 24 <div class="layer"> <!-- from first to second column --> |
25 <div class="square"></div> | 25 <div class="square"></div> |
26 <div class="layer"> | 26 <div class="layer"> |
27 <div class="square"></div> | 27 <div class="square"></div> |
28 <div class="square"></div> | 28 <div class="square"></div> |
29 </div> | 29 </div> |
30 <div class="square"></div> | 30 <div class="square"></div> |
(...skipping 19 matching lines...) Expand all Loading... |
50 <div class="layer"> <!-- from second to third column --> | 50 <div class="layer"> <!-- from second to third column --> |
51 <div class="layer"> <!-- from second to third column --> | 51 <div class="layer"> <!-- from second to third column --> |
52 <div class="square"></div> | 52 <div class="square"></div> |
53 <div class="square"></div> | 53 <div class="square"></div> |
54 </div> | 54 </div> |
55 <div class="square"></div> | 55 <div class="square"></div> |
56 <div class="square"></div> | 56 <div class="square"></div> |
57 </div> | 57 </div> |
58 </div> | 58 </div> |
59 </div> | 59 </div> |
OLD | NEW |