blob: c1bf6753c2a9df3494cd992d0a755e70ff68e96d [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<title>This tests that we can paint images on device pixel positions.</title>
<style>
img {
position: absolute;
}
</style>
</head>
<body>
<p id="container"></p>
<script>
var container = document.getElementById("container");
adjustment = 0.1;
w = 50; h = 50;
for (i = 0; i < 10; ++i) {
adjustment += 0.1;
for (j = 0; j < 10; ++j) {
var e = document.createElement("img");
e.src = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAIAAACQd1PeAAAADElEQVR42mP4%2F58BAAT%2FAf9jgNErAAAAAElFTkSuQmCC"
e.style.top = ((w + 1) * i + j * adjustment) + "px";
e.style.left = ((w + 1) * j + i * adjustment) + "px";
e.style.width = w + "px";
e.style.height = h + "px";
w += 0.1;
h += 0.1;
container.appendChild(e);
}
}
</script></body>
</html>