Subpixel rendering: Inline text selection painting should not snap to integral CSS...
[WebKit-https.git] / LayoutTests / fast / inline / hidpi-select-inline-on-subpixel-position-expected.html
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <title>This tests that inline text selection can paint to subpixel position.</title>
5 <style>
6   div {
7     font-size: 16px;
8     width: 21px;
9     height: 18px;
10     position: fixed;
11     background: rgba(255, 0, 0, 0.9);
12   }
13 </style>
14 </head>
15 <body>
16 <p id="container"></p>
17 <script>
18   var container = document.getElementById("container");
19   adjustment = 0.1;
20   for (i = 0; i < 10; ++i) {
21     adjustment+=0.1;
22     for (j = 0; j < 10; ++j) {
23       var e = document.createElement("div");
24       e.style.top = (30 * i + j * adjustment) + "px";
25       e.style.left = (30 * j + i * adjustment) + "px";
26       e.innerHTML = "foo";
27       container.appendChild(e);
28     }
29   }  
30 </script>
31 </body>
32 </html>