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