<!DOCTYPE html>
<html>
<head>
<title>This tests that we position directly composited images properly.</title>
<style>
img {
    position: absolute;
    width: 10px;
    height: 10px;
    -webkit-transform: translateZ(0);
  }
</style>
</head>
<body>
<div id=container></div>
</body>
<script>
var container = document.getElementById("container");
var offset = 0;
for (i = 0; i < 20; ++i) {
    for (j = 0; j < 20; ++j) {
        var element = document.createElement("img");
        element.src = "./resources/green-24x24.jpg";
        element.style.top = 15 * i + offset;
        element.style.left = 15 * j + offset;
        container.appendChild(element);
    }
    offset += 0.2;
}
</script>
</body>
</html>
