Move platform/mac-wk2/tiled-drawing to tiled-drawing/
[WebKit-https.git] / LayoutTests / tiled-drawing / scrolling / sticky / negative-scroll-offset.html
1 <html>
2 <head>
3     <style type="text/css" media="screen">
4       body {
5         height: 2200px;
6       }
7
8       .sticky {
9         position: -webkit-sticky;
10         width: 100%;
11         height: 50px;
12         left: 0;
13         right: 0;
14         bottom: 0;
15         background-color: rgba(0, 128, 0, 0.8);
16         border: 2px solid black;
17       }
18       
19     </style>
20     <script type="text/javascript" charset="utf-8">
21       if (window.testRunner) {
22         testRunner.waitUntilDone();
23         testRunner.dumpAsText();
24       }
25
26       function doScroll()
27       {
28         window.setTimeout(function() {
29           window.scrollTo(0, -20);
30           if (window.testRunner) {
31             document.getElementById('results').innerText = window.internals.scrollingStateTreeAsText();
32             testRunner.notifyDone();
33           }
34         }, 10);
35       }
36       
37       window.addEventListener('load', doScroll, false);
38     </script>
39
40     
41 </head>
42 <body>
43
44 <pre id="results"></pre>
45
46 <div class="sticky"></div>
47
48 </body>
49 </html>