| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <head> | 2 <head> |
| 3 <style> | 3 <style> |
| 4 body { | 4 body { |
| 5 height: 5000px; | 5 height: 5000px; |
| 6 background-color: red; | 6 background-color: red; |
| 7 overflow: hidden; | 7 overflow: hidden; |
| 8 } | 8 } |
| 9 | 9 |
| 10 #trigger { | 10 #trigger { |
| 11 -webkit-transform:translateZ(0); | 11 -webkit-transform:translateZ(0); |
| 12 } | 12 } |
| 13 | 13 |
| 14 #overlap { | 14 #overlap { |
| 15 width: 1000px; | 15 width: 1000px; |
| 16 height: 1000px; | 16 height: 1000px; |
| 17 background-color: green; | 17 background-color: green; |
| 18 position: fixed; | 18 position: fixed; |
| 19 left: 0px; | 19 left: 0px; |
| 20 top: 0px; | 20 top: 0px; |
| 21 } | 21 } |
| 22 </style> | 22 </style> |
| 23 </head> | 23 </head> |
| 24 <script> | 24 <script> |
| 25 function doTest() { | 25 function doTest() { |
| 26 if (window.testRunner) | 26 if (window.testRunner) |
| 27 testRunner.dumpAsText(true); | 27 testRunner.dumpAsTextWithPixelResults(); |
| 28 window.scrollTo(0, 2000); | 28 window.scrollTo(0, 2000); |
| 29 if (window.testRunner) | 29 if (window.testRunner) |
| 30 testRunner.display(); | 30 testRunner.display(); |
| 31 window.scrollTo(0, 1800); | 31 window.scrollTo(0, 1800); |
| 32 } | 32 } |
| 33 window.addEventListener("load", doTest, false); | 33 window.addEventListener("load", doTest, false); |
| 34 </script> | 34 </script> |
| 35 <body> | 35 <body> |
| 36 <div id="trigger"></div> | 36 <div id="trigger"></div> |
| 37 <div id="overlap"></div> | 37 <div id="overlap"></div> |
| 38 </body> | 38 </body> |
| 39 </html> | 39 </html> |
| OLD | NEW |