| <title>This tests that when the composited parent container enforces clipping and it is on a subpixel position, we snap child content properly.</title> |
| -webkit-transform: translateZ(0); |
| -webkit-transform: translateZ(0); |
| var body = document.body; |
| for (i = 0; i < 20; ++i) { |
| for (j = 0; j < 20; ++j) { |
| var container = document.createElement("div"); |
| container.style.top = 15 * i + y + "px"; |
| container.style.left = 15 * j + x + "px"; |
| container.className = "container"; |
| body.appendChild(container); |
| var inner = document.createElement("div"); |
| inner.className = "inner"; |
| container.appendChild(inner); |