Move platform/mac-wk2/tiled-drawing to tiled-drawing/
[WebKit-https.git] / LayoutTests / tiled-drawing / scrolling / fixed / 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       }
33
34       function doScroll()
35       {
36         window.setTimeout(function() {
37           window.scrollTo(0, 200);
38           if (window.internals) {
39             document.getElementById('results').innerText = internals.scrollingStateTreeAsText();
40             testRunner.notifyDone();
41           }
42         }, 10);
43       }
44       
45       window.addEventListener('load', doScroll, false);
46     </script>
47 </head>
48 <body>
49   <pre id="results"></pre>
50   <div class="fixed">
51     <div class="wrapper box">
52     </div>
53   </div>
54 </body>
55 </html>