OLD | NEW |
1 <!doctype html> | 1 <!doctype html> |
2 <style> | 2 <style> |
3 body { | 3 body { |
4 background-image: url('resources/simple_image.png'); | 4 background-image: url('resources/simple_image.png'); |
5 background-size: 200px 200px; | 5 background-size: 200px 200px; |
6 height: 3000px; | 6 height: 3000px; |
7 } | 7 } |
8 | 8 |
9 body.fixed { | 9 body.fixed { |
10 background-attachment: fixed; | 10 background-attachment: fixed; |
11 } | 11 } |
12 </style> | 12 </style> |
13 <script> | 13 <script> |
14 if (window.testRunner) | 14 if (window.testRunner) |
15 testRunner.dumpAsTextWithPixelResults(); | 15 testRunner.dumpAsTextWithPixelResults(); |
16 | 16 |
17 if (window.internals) { | 17 if (window.internals) { |
18 window.internals.settings.setAcceleratedCompositingForFixedRootBackgroun
dEnabled(true); | 18 window.internals.settings.setPreferCompositingToLCDTextEnabled(true); |
19 } | 19 } |
20 | 20 |
21 window.onload = function() { | 21 window.onload = function() { |
22 window.scrollTo(0, 300); | 22 window.scrollTo(0, 300); |
23 // crbug.com/343132 RenderLayerCompositor::rootFixedBackgroundsChanged s
hould not query stale compositing state | 23 // crbug.com/343132 RenderLayerCompositor::rootFixedBackgroundsChanged s
hould not query stale compositing state |
24 document.querySelector('body').classList.add('fixed'); | 24 document.querySelector('body').classList.add('fixed'); |
25 } | 25 } |
26 </script> | 26 </script> |
OLD | NEW |