OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <style type="text/css"> | 3 <style type="text/css"> |
4 .green { | 4 .green { |
5 width: 100px; | 5 width: 100px; |
6 height: 100px; | 6 height: 100px; |
7 background-color: green; | 7 background-color: green; |
8 display: block; | 8 display: block; |
9 padding: 10px; | 9 padding: 10px; |
10 -webkit-background-clip: content; | 10 -webkit-background-clip: content; |
11 } | 11 } |
12 .blue { | 12 .blue { |
13 width: 50px; | 13 width: 50px; |
14 height: 50px; | 14 height: 50px; |
15 background-color: blue; | 15 background-color: blue; |
16 display: block; | 16 display: block; |
17 } | 17 } |
18 | 18 |
19 .composited { | 19 .composited { |
20 -webkit-transform: translateZ(0); | 20 transform: translateZ(0); |
21 } | 21 } |
22 </style> | 22 </style> |
23 </head> | 23 </head> |
24 <body> | 24 <body> |
25 <div class="green composited"> | 25 <div class="green composited"> |
26 <div class="blue composited"> | 26 <div class="blue composited"> |
27 </div> | 27 </div> |
28 </div> | 28 </div> |
29 </body> | 29 </body> |
30 </html> | 30 </html> |
OLD | NEW |