| 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 22 matching lines...) Expand all Loading... |
| 33 <script> | 33 <script> |
| 34 if (window.testRunner) { | 34 if (window.testRunner) { |
| 35 testRunner.dumpAsTextWithPixelResults(); | 35 testRunner.dumpAsTextWithPixelResults(); |
| 36 } | 36 } |
| 37 | 37 |
| 38 function doTest() | 38 function doTest() |
| 39 { | 39 { |
| 40 if (window.testRunner) | 40 if (window.testRunner) |
| 41 testRunner.waitUntilDone(); | 41 testRunner.waitUntilDone(); |
| 42 | 42 |
| 43 runAfterDisplay(function() { | 43 // Any scroll should keep the fixed-position element where it is. |
| 44 // Any scroll should keep the fixed-position element where it is. | 44 // If it stutters or disappears incorrectly, then the red background will
be revealed. |
| 45 // If it stutters or disappears incorrectly, then the red background wil
l be revealed. | 45 window.scrollTo(0, 150); |
| 46 window.scrollTo(0, 150); | 46 |
| 47 if (window.testRunner) | 47 if (window.testRunner) { |
| 48 runAfterDisplay(function() { |
| 48 testRunner.notifyDone(); | 49 testRunner.notifyDone(); |
| 49 }); | 50 }); |
| 51 } |
| 50 } | 52 } |
| 51 | 53 |
| 52 window.addEventListener('load', doTest, false); | 54 window.addEventListener('load', doTest, false); |
| 53 </script> | 55 </script> |
| 54 </head> | 56 </head> |
| 55 <body> | 57 <body> |
| 56 <div class="green fixed box"> | 58 <div class="green fixed box"> |
| 57 <div class="container"> | 59 <div class="container"> |
| 58 <div class="perspective"></div> | 60 <div class="perspective"></div> |
| 59 </div> | 61 </div> |
| 60 </div> | 62 </div> |
| 61 </body> | 63 </body> |
| 62 </html> | 64 </html> |
| OLD | NEW |