| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 | 2 |
| 3 <html> | 3 <html> |
| 4 <head> | 4 <head> |
| 5 <style> | 5 <style> |
| 6 html { | 6 html { |
| 7 -webkit-perspective: 1200px; | 7 -webkit-perspective: 1200px; |
| 8 background-color: red; | 8 background-color: red; |
| 9 } | 9 } |
| 10 html.changed { | 10 html.changed { |
| 11 background-color: transparent; | 11 background-color: transparent; |
| 12 } | 12 } |
| 13 body { | 13 body { |
| 14 -webkit-transform: translateZ(0); | 14 transform: translateZ(0); |
| 15 } | 15 } |
| 16 .box { | 16 .box { |
| 17 width: 100px; | 17 width: 100px; |
| 18 height: 100px; | 18 height: 100px; |
| 19 background-color: blue; | 19 background-color: blue; |
| 20 } | 20 } |
| 21 </style> | 21 </style> |
| 22 <script> | 22 <script> |
| 23 if (window.testRunner) | 23 if (window.testRunner) |
| 24 testRunner.waitUntilDone(); | 24 testRunner.waitUntilDone(); |
| 25 | 25 |
| 26 function doTest() | 26 function doTest() |
| 27 { | 27 { |
| 28 window.setTimeout(function() { | 28 window.setTimeout(function() { |
| 29 document.documentElement.className = 'changed'; | 29 document.documentElement.className = 'changed'; |
| 30 if (window.testRunner) | 30 if (window.testRunner) |
| 31 testRunner.notifyDone(); | 31 testRunner.notifyDone(); |
| 32 }, 0); | 32 }, 0); |
| 33 } | 33 } |
| 34 window.addEventListener('load', doTest, false); | 34 window.addEventListener('load', doTest, false); |
| 35 </script> | 35 </script> |
| 36 </head> | 36 </head> |
| 37 <body> | 37 <body> |
| 38 <p>In a pixel test, you should see a plain white background.</p> | 38 <p>In a pixel test, you should see a plain white background.</p> |
| 39 </body> | 39 </body> |
| 40 </html> | 40 </html> |
| OLD | NEW |