Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / compositing / fixed-background-after-style-recalc.html
1 <!doctype html>
2 <style>
3     body {
4         background-image: url('resources/simple_image.png');
5         background-size: 200px 200px;
6         height: 3000px;
7     }
8
9     body.fixed {
10         background-attachment: fixed;
11     }
12 </style>
13 <script>
14     if (window.testRunner)
15         testRunner.dumpAsTextWithPixelResults();
16
17     if (window.internals) {
18         window.internals.settings.setForceCompositingMode(true);
19         window.internals.settings.setAcceleratedCompositingForFixedRootBackgroundEnabled(true);
20     }
21
22     window.onload = function() {
23         window.scrollTo(0, 300);
24         // crbug.com/343132 RenderLayerCompositor::rootFixedBackgroundsChanged should not query stale compositing state
25         document.querySelector('body').classList.add('fixed');
26     }
27 </script>