blob: 23985ef41629a869f8d49498b8d1fabfd7f840a8 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<title>This tests that nested non-compositing layers with subpixel accumulation paint to the same position as regular content.</title>
<style>
div {
width: 50px;
height: 50px;
left: 0px;
position: absolute;
-webkit-transform: rotate(0deg);
border: 1px solid;
}
</style>
</head>
<body>
<p id="container"></p>
<script>
left = 0;
for (i = 0; i < 6; ++i, left+=55.3) {
var container = document.getElementById("container");
dimension = 50;
for (j = 0; j < 10; ++j, dimension+=-4) {
var e = document.createElement("div");
e.style.top = "1.3px";
e.style.width = dimension + "px";
e.style.height = dimension + "px";
if (j == 0)
e.style.left = left + "px";
color = (j * 20);
e.style.borderColor = "rgb(" + color + ", " + color + ", " + color + ")";
container.appendChild(e);
container = e;
}
}
</script>
</body>
</html>