| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <style type='text/css'> | 4 <style type='text/css'> |
| 5 body { | 5 body { |
| 6 height: 1000px; | 6 height: 1000px; |
| 7 } | 7 } |
| 8 | 8 |
| 9 .green { | 9 .green { |
| 10 background-color: green; | 10 background-color: green; |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 .container { | 24 .container { |
| 25 position: relative; | 25 position: relative; |
| 26 } | 26 } |
| 27 | 27 |
| 28 .perspective { | 28 .perspective { |
| 29 -webkit-perspective: 1px; | 29 -webkit-perspective: 1px; |
| 30 } | 30 } |
| 31 </style> | 31 </style> |
| 32 <script> | 32 <script> |
| 33 if (window.testRunner) { | 33 if (window.testRunner) { |
| 34 testRunner.dumpAsText(true); | 34 testRunner.dumpAsTextWithPixelResults(); |
| 35 } | 35 } |
| 36 | 36 |
| 37 function doTest() | 37 function doTest() |
| 38 { | 38 { |
| 39 if (window.testRunner) | 39 if (window.testRunner) |
| 40 testRunner.display(); | 40 testRunner.display(); |
| 41 | 41 |
| 42 // Any scroll should keep the fixed-position element where it is. | 42 // Any scroll should keep the fixed-position element where it is. |
| 43 // If it stutters or disappears incorrectly, then the red background will
be revealed. | 43 // If it stutters or disappears incorrectly, then the red background will
be revealed. |
| 44 window.scrollTo(0, 150); | 44 window.scrollTo(0, 150); |
| 45 } | 45 } |
| 46 | 46 |
| 47 window.addEventListener('load', doTest, false); | 47 window.addEventListener('load', doTest, false); |
| 48 </script> | 48 </script> |
| 49 </head> | 49 </head> |
| 50 <body> | 50 <body> |
| 51 <div class="green fixed box"> | 51 <div class="green fixed box"> |
| 52 <div class="container"> | 52 <div class="container"> |
| 53 <div class="perspective"></div> | 53 <div class="perspective"></div> |
| 54 </div> | 54 </div> |
| 55 </div> | 55 </div> |
| 56 </body> | 56 </body> |
| 57 </html> | 57 </html> |
| OLD | NEW |