Move platform/mac-wk2/tiled-drawing to tiled-drawing/
[WebKit-https.git] / LayoutTests / tiled-drawing / scrolling / fixed / nested-fixed.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         .box {
12           height: 100px;
13           width: 100px;
14         }
15
16         .outer {
17             position: fixed;
18             top: 0px;
19             z-index: 1; /* makes this a stacking context */
20             background: blue;
21         }
22
23         .inner {
24             position: fixed;
25             top: 120px;
26             left: 120px;
27             background: green;
28         }
29     </style>
30     <script type="text/javascript" charset="utf-8">
31       if (window.testRunner) {
32         testRunner.waitUntilDone();
33         testRunner.dumpAsText();
34       }
35
36       function doScroll()
37       {
38         window.setTimeout(function() {
39           window.scrollTo(0, 200);
40           if (window.testRunner) {
41             document.getElementById('results').innerText = window.internals.scrollingStateTreeAsText();
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="outer box">
53         <div class="inner box"></div>
54     </div>
55 </body>
56 </html>