A focused node should not be assisted when handling touch events synchronously
[WebKit-https.git] / ManualTests / ios / focused-input-should-assist-on-touch.html
1 <html>
2 <head>
3     <meta name="viewport" content="width=device-width, initial-scale=1">
4     <script>
5         function handleTouchEvent(event) {
6             event.target.focus();
7             event.preventDefault();
8         }
9     </script>
10
11     <style>
12         input:focus {
13             outline: none;
14             border: 1px solid #4D90FE;
15         }
16     </style>
17
18 </head>
19
20 <body style="margin: 0;">
21     <p>This tests checks that a node can be assisted when focused due to a touch event, even when the focus does not change.</p>
22     <p>Tapping the below input should show the keyboard.</p>
23     <input autofocus ontouchstart="handleTouchEvent(event);"></input>
24 </body>
25 </html>