(iPad) Link tapping is sluggish on many sites
[WebKit-https.git] / LayoutTests / fast / events / ios / viewport-no-width-value-allows-double-tap.html
1 <!DOCTYPE html> <!-- webkit-test-runner [ useFlexibleViewport=true ] -->
2
3 <html>
4 <meta name="viewport" content="initial-scale=1.0">
5
6 <head>
7     <script src="../../../resources/js-test-pre.js"></script>
8     <script src="../../../resources/ui-helper.js"></script>
9
10     <script>
11     if (window.testRunner)
12         testRunner.waitUntilDone();
13
14     async function runTest() {
15         window.addEventListener("scroll", scrolled, false);
16         if (window.testRunner)
17             await UIHelper.doubleTapAt(15, 400);
18     }
19     function scrolled() {
20         if (window.testRunner)
21             testRunner.notifyDone();
22     }
23     </script>
24
25     <style>
26     body {
27         margin: 0;
28     }
29     </style>
30 </head>
31
32 <body onload="runTest()">
33     <p>Double tapping on the image should scroll.</p>
34     <p>This test is best run in WebKitTestRunner. If you are running this test manually, verify that double tapping on the bottom of the viewport caused a scroll.</p>
35     <img src="thin-gradient.jpg">
36     <script src="../../../resources/js-test-post.js"></script>
37 </body>
38
39 </html>