blob: 4bd74b9f09d446554c1782b69c42fd1f21de898d [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<title>This tests that we position directly composited images properly.</title>
<style>
img {
position: absolute;
width: 10px;
height: 10px;
}
</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>