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-transform: translateZ(0); | 7 -webkit-transform: translateZ(0); |
8 } | 8 } |
9 body { | 9 body { |
10 height: 2000px; | 10 height: 2000px; |
11 background-image: url('resources/simple_image.png'); | 11 background-image: url('resources/simple_image.png'); |
12 background-size: 200px 200px; | 12 background-size: 200px 200px; |
13 background-attachment: fixed; | 13 background-attachment: fixed; |
14 overflow: hidden; /* hide scrollbar */ | 14 overflow: hidden; /* hide scrollbar */ |
15 } | 15 } |
16 </style> | 16 </style> |
17 <script> | 17 <script> |
18 if (window.testRunner) { | 18 if (window.testRunner) { |
19 testRunner.waitUntilDone(); | 19 testRunner.waitUntilDone(); |
20 window.internals.settings.setAcceleratedCompositingForFixedRootBackgroun
dEnabled(true); | 20 window.internals.settings.setPreferCompositingToLCDTextEnabled(true); |
21 } | 21 } |
22 | 22 |
23 | 23 |
24 function doTest() | 24 function doTest() |
25 { | 25 { |
26 window.scrollTo(0, 223); | 26 window.scrollTo(0, 223); |
27 if (window.testRunner) | 27 if (window.testRunner) |
28 testRunner.notifyDone(); | 28 testRunner.notifyDone(); |
29 } | 29 } |
30 | 30 |
31 window.addEventListener('load', doTest, false); | 31 window.addEventListener('load', doTest, false); |
32 </script> | 32 </script> |
33 </head> | 33 </head> |
34 <body> | 34 <body> |
35 </body> | 35 </body> |
36 </html> | 36 </html> |
OLD | NEW |