[iOS WK2] REGRESSION (r242687): Programmatic scroll of overflow scroll results in...
[WebKit-https.git] / LayoutTests / scrollingcoordinator / ios / programmatic-overflow-scroll.html
1 <!DOCTYPE html> <!-- webkit-test-runner [ useFlexibleViewport=true internal:AsyncOverflowScrollingEnabled=true ] -->
2 <html>
3 <head>
4     <meta name="viewport" content="width=device-width">
5     <style>
6         #scroller {
7             height: 300px;
8             width: 300px;
9             overflow: scroll;
10             -webkit-overflow-scrolling: touch;
11         }
12         
13         .box {
14             width: 100%;
15             height: 100%;
16         }
17         
18         .top {
19             background-color: red;
20         }
21
22         .bottom {
23             background-color: green;
24         }
25
26     </style>
27     <script>
28         function doTest()
29         {
30             scroller.scrollTop = 500;
31         }
32         
33         window.addEventListener('load', doTest, false);
34     </script>
35 </head>
36 <body>
37     <div id="scroller">
38         <div class="top box"></div>
39         <div class="bottom box"></div>
40     </div>
41 </body>
42 </html>