| <title>This tests that child content is positioned properly when the parent compositing layer has zero width/height.</title> |
| var container = document.getElementById("container"); |
| for (i = 0; i < 40; ++i) { |
| for (j = 0; j < 40; ++j) { |
| var c = document.createElement("div"); |
| c.className = "container"; |
| c.style.top = (6 * i + j * containerAdjustment) + "px"; |
| c.style.left = (6 * j + i * containerAdjustment) + "px"; |
| var child = document.createElement("div"); |
| child.className = "child"; |
| child.style.top = (6 * i + j * childAdjustment) + "px"; |
| child.style.left = (6 * j + i * childAdjustment) + "px"; |
| container.appendChild(c); |
| containerAdjustment += 0.05; |