4 <title>This tests that inline text selection can paint to subpixel position.</title>
7 background: rgba(255, 0, 0, 0.9);
20 <p id="container"></p>
22 var container = document.getElementById("container");
24 for (i = 0; i < 10; ++i) {
26 for (j = 0; j < 10; ++j) {
27 var e = document.createElement("div");
28 e.style.top = (30 * i + j * adjustment) + "px";
29 e.style.left = (30 * j + i * adjustment) + "px";
31 container.appendChild(e);
35 var range = document.createRange();
36 range.selectNode(document.getElementById("container"));
37 window.getSelection().addRange(range);