Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 <!DOCTYPE html> | |
| 2 | |
| 3 <html> | |
| 4 <head> | |
| 5 <style> | |
| 6 html { | |
| 7 -webkit-transform: translateZ(0); | |
| 8 } | |
| 9 body { | |
| 10 height: 2000px; | |
| 11 background-image: url('../../../../compositing/resources/simple_imag e.png'); | |
| 12 background-size: 200px 200px; | |
| 13 background-attachment: fixed; | |
| 14 overflow: hidden; /* hide scrollbar */ | |
| 15 } | |
| 16 </style> | |
| 17 <script> | |
| 18 if (window.testRunner) { | |
| 19 testRunner.waitUntilDone(); | |
| 20 window.internals.settings.setForceCompositingMode(true); | |
| 21 window.internals.settings.setAcceleratedCompositingForFixedRootBackgroun dEnabled(true); | |
| 22 } | |
| 23 | |
| 24 | |
| 25 function doTest() | |
| 26 { | |
| 27 window.setTimeout(function() { | |
|
jamesr
2013/06/13 19:48:47
what's the setTimeout for?
| |
| 28 window.scrollTo(0, 223); | |
| 29 if (window.testRunner) | |
| 30 testRunner.notifyDone(); | |
| 31 }, 0); | |
| 32 } | |
| 33 | |
| 34 window.addEventListener('load', doTest, false); | |
| 35 </script> | |
| 36 </head> | |
| 37 <body> | |
| 38 </body> | |
| 39 </html> | |
| OLD | NEW |