| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <style type="text/css" media="screen"> | 4 <style type="text/css" media="screen"> |
| 5 | 5 |
| 6 body { | 6 body { |
| 7 background-color: silver; | 7 background-color: silver; |
| 8 padding: 10px; | 8 padding: 10px; |
| 9 } | 9 } |
| 10 | 10 |
| 11 .container { | 11 .container { |
| 12 position: absolute; | 12 position: absolute; |
| 13 height: 100px; | 13 height: 100px; |
| 14 width: 100px; | 14 width: 100px; |
| 15 margin: 10px; | 15 margin: 10px; |
| 16 left: 0; | 16 left: 0; |
| 17 top: 0; | 17 top: 0; |
| 18 z-index: -1; | 18 z-index: -1; |
| 19 background-color: blue; | 19 background-color: blue; |
| 20 } | 20 } |
| 21 | 21 |
| 22 .compositing { | 22 .compositing { |
| 23 -webkit-transform: translateZ(0); | 23 transform: translateZ(0); |
| 24 } | 24 } |
| 25 </style> | 25 </style> |
| 26 </head> | 26 </head> |
| 27 | 27 |
| 28 <body> | 28 <body> |
| 29 | 29 |
| 30 <!-- the body background should cover the entire viewport. No red should be vi
sible in debug builds. --> | 30 <!-- the body background should cover the entire viewport. No red should be vi
sible in debug builds. --> |
| 31 <div class="container"> | 31 <div class="container"> |
| 32 <div class="compositing"> | 32 <div class="compositing"> |
| 33 Compositing | 33 Compositing |
| 34 </div> | 34 </div> |
| 35 </div> | 35 </div> |
| 36 | 36 |
| 37 </body> | 37 </body> |
| 38 </html> | 38 </html> |
| OLD | NEW |