Move /platform/ios-simulator/accessibility tests to accessibility/ios-simulator/
[WebKit-https.git] / LayoutTests / tiled-drawing / scrolling / fixed / percentage-inside-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         .wrapper {
17           position: fixed;
18           width: 50%;
19           height: 50%;
20           border: 20px solid gray;
21           background-color: silver;
22           z-index: 0;
23         }
24
25         .inner {
26             position: relative;
27             margin-left:-50px;
28             margin-top:-100px;
29             top: 100%;
30             left: 50%;
31             background: green;
32         }
33     </style>
34     <script>
35       if (window.testRunner) {
36         testRunner.waitUntilDone();
37         testRunner.dumpAsText();
38       }
39
40       function doScroll()
41       {
42         window.setTimeout(function() {
43           window.scrollTo(0, 200);
44           if (window.testRunner) {
45             document.getElementById('results').innerText = window.internals.scrollingStateTreeAsText();
46             testRunner.notifyDone();
47           }
48         }, 10);
49       }
50       
51       window.addEventListener('load', doScroll, false);
52     </script>
53 </head>
54 <body>
55     <!-- The gray box should take up the top left quadrant of the web area.
56          The green box should be aligned with the inside edge of the paler gray box, in the bottom middle.
57     -->
58     <pre id="results"></pre>
59     <div class="wrapper">
60       <div class="inner box"></div>
61     </div>
62 </body>
63 </html>