| <title>This tests that we can subpixel position textareas properly.</title> |
| border: 0.5px solid black; |
| var container = document.getElementById("container"); |
| for (i = 0; i < 15; ++i) { |
| for (j = 0; j < 15; ++j) { |
| var e = document.createElement("textarea"); |
| var topLeftY = ((w + 10) * i + j * adjustment); |
| var topLeftX = ((w + 10) * j + i * adjustment); |
| e.style.top = topLeftY + "px"; |
| e.style.left = topLeftX + "px"; |
| e.style.width = w + "px"; |
| e.style.height = h + "px"; |
| container.appendChild(e); |
| var cover = document.createElement("div"); |
| cover.style.top = (topLeftY + h - h/2 + 1) + "px"; |
| cover.style.left = (topLeftX + w - w/2 + 1) + "px"; |
| cover.style.width = w/2 + "px"; |
| cover.style.height = h/2 + "px"; |
| container.appendChild(cover); |