Upstream version 10.39.225.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.setPreferCompositingToLCDTextEnabled(true);
19     }
20
21     window.onload = function() {
22         window.scrollTo(0, 300);
23         // crbug.com/343132 RenderLayerCompositor::rootFixedBackgroundsChanged should not query stale compositing state
24         document.querySelector('body').classList.add('fixed');
25     }
26 </script>