| <title>This tests that dotted border is painted properly when on subpixel position.</title> |
| border-top: 1px dotted blue; |
| border-bottom: 1px dotted blue; |
| border-left: 1px dotted blue; |
| border-right: 1px dotted blue; |
| function createDashedBox(x, y, side) { |
| var box = document.createElement("div"); |
| box.style.left = x + "px"; |
| box.style.top = y + "px"; |
| box.className = "border" + side; |
| document.body.appendChild(box); |
| for (side = 1; side <= 4; ++side) { |
| for (i = 0; i < 10; ++i) { |
| createDashedBox(x, 0, side); |
| for (i = 0; i < 40; ++i) { |
| createDashedBox(x, y, side); |