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