[iOS] Programmaic scroll of "scrolling=no" iframe fails
[WebKit-https.git] / LayoutTests / fast / scrolling / progammatic-scroll-scrolling-no-frame.html
1 <!DOCTYPE html>
2 <html>
3 <head>
4         <script src="../../resources/js-test-pre.js"></script>
5     <script>
6         jsTestIsAsync = true;
7         var iframe;
8         window.addEventListener('load', () => {
9             iframe = document.getElementsByTagName('iframe')[0];
10             shouldBe('iframe.contentWindow.scrollY', '0');
11             iframe.contentWindow.scrollTo(0, 400);
12             shouldBe('iframe.contentWindow.scrollY', '400');
13             finishJSTest();
14         }, false);
15     </script>
16 </head>
17 <body>
18     <iframe scrolling="no" srcdoc="
19     <style>
20         body {
21             height: 2000px;
22         }
23     </style>
24     text here
25     "></iframe>
26 <div id="console"></div>
27 <script src="../../resources/js-test-post.js"></script>
28 </body>
29 </html>