OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 |
| 3 <html> |
| 4 <head> |
| 5 <style> |
| 6 body { |
| 7 height: 2000px; |
| 8 background-image: url('resources/simple_image.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.scrollTo(0, 223); |
| 33 if (window.testRunner) |
| 34 testRunner.notifyDone(); |
| 35 } |
| 36 |
| 37 window.addEventListener('load', doTest, false); |
| 38 </script> |
| 39 </head> |
| 40 <body> |
| 41 |
| 42 <div class="fixed box"></div> |
| 43 |
| 44 </body> |
| 45 </html> |
OLD | NEW |