Move platform/mac-wk2/tiled-drawing to tiled-drawing/
[WebKit-https.git] / LayoutTests / tiled-drawing / scrolling / fixed / fixed-in-overflow.html
1 <!DOCTYPE html>
2 <html>
3
4 <head>
5     <style type="text/css" media="screen">
6         body {
7             margin: 0;
8             height: 2200px;
9         }
10
11         .scrolly {
12             overflow: scroll;
13             width:200px;
14             height:200px;
15             border: 2px solid black;
16         }
17         
18         .big {
19             border:1px solid purple;
20             height: 500px;
21             width:50px;
22         }
23
24         .fixed {
25             height: 100px;
26             width: 100px;
27             position: fixed;
28             background: green;
29         }
30     </style>
31     <script type="text/javascript" charset="utf-8">
32       if (window.testRunner) {
33         testRunner.waitUntilDone();
34         testRunner.dumpAsText();
35       }
36
37       function doScroll()
38       {
39         window.setTimeout(function() {
40         window.scrollTo(0, 200);
41           if (window.testRunner) {
42             document.getElementById('results').innerText = window.internals.scrollingStateTreeAsText();
43             testRunner.notifyDone();
44           }
45         }, 10);
46       }
47       
48       window.addEventListener('load', doScroll, false);
49     </script>
50 </head>
51 <body>
52     <pre id="results"></pre>
53     <div class="scrolly">
54         <div class="fixed"></div>
55         <div class="big"></div>
56     </div>
57 </body>
58 </html>