aa2a3f97f8097ada87cfd0161647f62cff72953f
[WebKit-https.git] / LayoutTests / fast / sub-pixel / input-caret-on-subpixel-bound.html
1 <!DOCTYPE html>
2 <html>
3   <head>
4     <style>
5       body {
6           font-size: 13px;
7           font-family: sans-serif;
8       }
9       table {
10           padding: 2.59px;
11       }
12       input {
13           padding: 5.5px;
14       }
15     </style>
16   </head>
17   <body>
18     <fieldset>
19       <table>
20         <tr>
21           <td>
22             <input type="text" value="Caret"/>
23           </td>
24         </tr>
25       </table>
26     </fieldset>
27     <script>
28         
29         if (window.testRunner)
30             testRunner.waitUntilDone();
31
32         function test()
33         {
34             var el = document.getElementsByTagName('input')[0];
35             el.focus();
36             var step = function() {
37                 var value = el.value;
38                 if (value) {
39                     el.value = value.substr(0, value.length - 1);
40                     window.setTimeout(step, 10);
41                 }
42                 else if (window.testRunner)
43                     testRunner.notifyDone();
44             };
45             step();
46         }
47         
48         test();
49     </script>
50   </body>
51 </html>