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: rgba(0, 128, 0, 128); | 7 background-color: rgba(0, 128, 0, 128); |
8 display: block; | 8 display: block; |
9 } | 9 } |
10 .blue { | 10 .blue { |
11 width: 50px; | 11 width: 50px; |
12 height: 50px; | 12 height: 50px; |
13 background-color: rgba(0, 0, 128, 128); | 13 background-color: rgba(0, 0, 128, 128); |
14 display: block; | 14 display: block; |
15 } | 15 } |
16 | 16 |
17 .composited { | 17 .composited { |
18 -webkit-transform: translateZ(0); | 18 transform: translateZ(0); |
19 } | 19 } |
20 </style> | 20 </style> |
21 </head> | 21 </head> |
22 <body> | 22 <body> |
23 <div class="green composited"> | 23 <div class="green composited"> |
24 <div class="blue composited"> | 24 <div class="blue composited"> |
25 </div> | 25 </div> |
26 </div> | 26 </div> |
27 </body> | 27 </body> |
28 </html> | 28 </html> |
OLD | NEW |