Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / sub-pixel / input-caret-on-subpixel-bound.html
blobaa2a3f97f8097ada87cfd0161647f62cff72953f
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <style>
5 body {
6 font-size: 13px;
7 font-family: sans-serif;
9 table {
10 padding: 2.59px;
12 input {
13 padding: 5.5px;
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>
29 if (window.testRunner)
30 testRunner.waitUntilDone();
32 function test()
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);
42 else if (window.testRunner)
43 testRunner.notifyDone();
45 step();
48 test();
49 </script>
50 </body>
51 </html>