261cad06cced806802239071a262190f2487e24b
[WebKit-https.git] / LayoutTests / platform / mac-wk2 / tiled-drawing / scrolling / fixed-background / fixed-body-background.html
1 <!DOCTYPE html>
2
3 <html>
4 <head>
5     <style>
6         body {
7             margin: 100px;
8             height: 1500px;
9             background-image: url('../../../../compositing/resources/simple_image.png');
10             background-size: 200px 200px;
11             background-attachment: fixed;
12         }
13         
14         .test {
15             height: 400px;
16             width: 600px;
17             background-color: rgba(0, 0, 0, 0.5);
18             border: 20px solid orange;
19         }
20         
21         #layers {
22             opacity: 0;
23         }
24     </style>
25     <script>
26     if (window.testRunner)
27         testRunner.dumpAsText(true);
28     
29     function doTest()
30     {
31         window.scrollTo(0, 200);
32
33         if (window.internals)
34             document.getElementById('layers').innerText = internals.layerTreeAsText(document, internals.LAYER_TREE_INCLUDES_TILE_CACHES);
35     }
36     
37     window.addEventListener('load', doTest, false);
38     </script>
39 </head>
40 <body>
41
42     <div class="test"></div>
43 <pre id="layers"></pre>
44 </body>
45 </html>