Source/WebCore:
[WebKit-https.git] / LayoutTests / scrollingcoordinator / scrolling-tree / resources / autoscrolling-frame-with-fixed.html
1 <!DOCTYPE html>
2
3 <html>
4 <head>
5     <style>
6         body {
7             height: 1000px;
8             background-image: repeating-linear-gradient(to bottom, silver, white 100px);
9         }
10
11         .fixed {
12             position: fixed;
13             left: 10px;
14             width: 600px;
15             top: 10px;
16             height: 100px;
17             background-color: gray;
18         }
19     </style>
20     <script>
21         function doScroll()
22         {
23             window.setTimeout(function() {
24                 document.scrollingElement.scrollTop = 120;
25                 window.parent.frameDidChange();
26             }, 0);
27         }
28         window.addEventListener('load', doScroll, false);
29     </script>
30 </head>
31 <body>
32
33 <div class="fixed">
34     Top bar
35 </div>
36
37 </body>
38 </html>