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 .layer { transform: translateZ(0); } | 16 .layer { transform: translateZ(0); } |
17 </style> | 17 </style> |
18 | 18 |
19 <p>There should be two green squares below.</p> | 19 <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> |
20 <div class="multicol"> | 20 <div class="multicol"> |
21 <div class="square"></div> | 21 <div class="square"></div> |
22 <div class="square"></div> | 22 <div class="square"></div> |
23 <div class="layer"> <!-- from first to second column --> | 23 <div class="layer"> <!-- from first to second column --> |
24 <div class="square"></div> | 24 <div class="square"></div> |
25 <div class="square"></div> | 25 <div class="square"></div> |
26 </div> | 26 </div> |
27 <div class="square"></div> | 27 <div class="square"></div> |
28 <div class="layer"> <!-- from second to third column --> | 28 <div class="layer"> <!-- from second to third column --> |
29 <div class="square"></div> | 29 <div class="square"></div> |
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 class="square"></div> | 33 <div class="square"></div> |
34 </div> | 34 </div> |
35 | 35 |
36 <div class="multicol"> | 36 <div class="multicol"> |
37 <div class="square"></div> | 37 <div class="square"></div> |
38 <div class="square"></div> | 38 <div class="square"></div> |
39 <div class="layer"> <!-- from first to third column --> | 39 <div class="layer"> <!-- from first to third column --> |
40 <div class="square"></div> | 40 <div class="square"></div> |
41 <div class="square"></div> | 41 <div class="square"></div> |
42 <div class="square"></div> | 42 <div class="square"></div> |
43 <div class="square"></div> | 43 <div class="square"></div> |
44 <div class="square"></div> | 44 <div class="square"></div> |
45 </div> | 45 </div> |
46 <div class="square"></div> | 46 <div class="square"></div> |
47 <div class="square"></div> | 47 <div class="square"></div> |
48 </div> | 48 </div> |
OLD | NEW |