| OLD | NEW |
| 1 <!DOCTYPE> | 1 <!DOCTYPE> |
| 2 | 2 |
| 3 <html> | 3 <html> |
| 4 <head> | 4 <head> |
| 5 <title>Directly composited images with background color</title> | 5 <title>Directly composited images with background color</title> |
| 6 <style type="text/css" media="screen"> | 6 <style type="text/css" media="screen"> |
| 7 body { | 7 body { |
| 8 outline: 10px solid transparent; /* affects layer sizes */ | 8 outline: 10px solid transparent; /* affects layer sizes */ |
| 9 } | 9 } |
| 10 | 10 |
| 11 img { | 11 img { |
| 12 display: block; | 12 display: block; |
| 13 margin: 20px; | 13 margin: 20px; |
| 14 height: 180px; | 14 height: 180px; |
| 15 width: 260px; | 15 width: 260px; |
| 16 padding: 10px; | 16 padding: 10px; |
| 17 background-color: rgba(0, 0, 128, 0.5); | 17 background-color: rgba(0, 0, 128, 0.5); |
| 18 } | 18 } |
| 19 | 19 |
| 20 .composited { | 20 .composited { |
| 21 -webkit-transform: translateZ(0); | 21 transform: translateZ(0); |
| 22 } | 22 } |
| 23 </style> | 23 </style> |
| 24 </head> | 24 </head> |
| 25 <body> | 25 <body> |
| 26 | 26 |
| 27 <img src="../resources/alpha-gradient-small.png"> | 27 <img src="../resources/alpha-gradient-small.png"> |
| 28 <img class="composited" src="../resources/alpha-gradient-small.png"> | 28 <img class="composited" src="../resources/alpha-gradient-small.png"> |
| 29 | 29 |
| 30 <p>Top and bottom should look the same.</p> | 30 <p>Top and bottom should look the same.</p> |
| 31 | 31 |
| 32 </body> | 32 </body> |
| 33 </html> | 33 </html> |
| OLD | NEW |