(iPad) Link tapping is sluggish on many sites
[WebKit-https.git] / LayoutTests / fast / events / ios / viewport-zooms-from-element-to-initial-scale.html
1 <!DOCTYPE html> <!-- webkit-test-runner [ useFlexibleViewport=true ] -->
2
3 <html>
4 <meta name="viewport" content="initial-scale=5, width=device-width">
5 <head>
6     <script src="../../../resources/ui-helper.js"></script>
7     <script>
8         if (window.testRunner) {
9             testRunner.dumpAsText();
10             testRunner.waitUntilDone();
11         }
12
13         async function runTest()
14         {
15             if (!window.testRunner)
16                 return;
17
18             await UIHelper.zoomToScale(1.6);
19             let result = await UIHelper.zoomByDoubleTappingAt(15, 15);
20             document.getElementById("target").innerText = "The viewport zoomed to scale: " + Number(result);
21             testRunner.notifyDone();
22         }
23     </script>
24     <style>
25         body {
26             margin: 0;
27         }
28         #target {
29             height: 100px;
30             width: 100px;
31             background-color: silver;
32         }
33     </style>
34 </head>
35 <body onload="runTest()">
36 <div id="target"></div>
37 </body>
38 </html>