OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <style type="text/css"> | 4 <style type="text/css"> |
5 .box { | 5 .box { |
6 position: relative; | 6 position: relative; |
7 display: inline-block; | 7 display: inline-block; |
8 margin: 30px; | 8 margin: 30px; |
9 width: 200px; | 9 width: 200px; |
10 height: 200px; | 10 height: 200px; |
11 -webkit-transform: translateZ(0); | 11 transform: translateZ(0); |
12 } | 12 } |
13 | 13 |
14 .main { | 14 .main { |
15 border: 40px solid gray; | 15 border: 40px solid gray; |
16 background-color: red; | 16 background-color: red; |
17 line-height: 0; | 17 line-height: 0; |
18 outline: 20px solid transparent; /* Makes compositing layers larger */ | 18 outline: 20px solid transparent; /* Makes compositing layers larger */ |
19 } | 19 } |
20 | 20 |
21 .child { | 21 .child { |
22 position: absolute; | 22 position: absolute; |
23 width: 150px; | 23 width: 150px; |
24 height: 150px; | 24 height: 150px; |
25 padding: 20px; | 25 padding: 20px; |
26 -webkit-transform: translateZ(0); | 26 transform: translateZ(0); |
27 } | 27 } |
28 | 28 |
29 .negative { | 29 .negative { |
30 z-index: -1; | 30 z-index: -1; |
31 top: 0; | 31 top: 0; |
32 left: 0; | 32 left: 0; |
33 height: 10px; | 33 height: 10px; |
34 width: 10px; | 34 width: 10px; |
35 } | 35 } |
36 | 36 |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 </div> | 92 </div> |
93 | 93 |
94 <div class="main box" style="overflow: hidden;"> | 94 <div class="main box" style="overflow: hidden;"> |
95 <img><img><img class="repainted"><img> | 95 <img><img><img class="repainted"><img> |
96 <div class="negative child"></div> | 96 <div class="negative child"></div> |
97 </div> | 97 </div> |
98 | 98 |
99 <pre id="layer-tree"></pre> | 99 <pre id="layer-tree"></pre> |
100 </body> | 100 </body> |
101 </html> | 101 </html> |
OLD | NEW |