dcacd295ca2577aebbbefdfc987319d10089a8ce
[WebKit-https.git] / LayoutTests / compositing / absolute-inside-out-of-view-fixed.html
1 <!DOCTYPE html>
2 <html>
3
4 <head>
5     <style>
6         body {
7             margin: 0;
8             height: 2500px;
9         }
10
11         .box {
12           height: 100px;
13           width: 100px;
14         }
15
16         .fixed {
17             position: fixed;
18             left: 0px;
19             top: 0px;
20         }
21
22         .wrapper {
23           position: absolute;
24           background-color: green;
25         }
26         
27     </style>
28     <script>
29       if (window.testRunner) {
30         testRunner.waitUntilDone();
31         testRunner.dumpAsText();
32         if (window.internals)
33             window.internals.settings.setAcceleratedCompositingForFixedPositionEnabled(true);
34       }
35
36       function doScroll()
37       {
38         window.setTimeout(function() {
39           window.scrollTo(0, 200);
40           if (window.internals) {
41             document.getElementById('results').innerText = internals.layerTreeAsText(document);
42             testRunner.notifyDone();
43           }
44         }, 10);
45       }
46       
47       window.addEventListener('load', doScroll, false);
48     </script>
49 </head>
50 <body>
51   <pre id="results"></pre>
52   <div class="fixed">
53     <div class="wrapper box">
54     </div>
55   </div>
56 </body>
57 </html>