blob: b00285e21b9113b006811a0d1aaab959da13b034 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<title>This tests that transform anchor point is calculated properly when renderer() has fractional device pixel value.</title>
<head>
<style>
div {
background: green;
width: 9px;
height: 9px;
position: absolute;
}
</style>
</head>
<body>
<p id="container"></p>
<script>
var container = document.getElementById("container");
adjustment = 0.1;
for (i = 0; i < 10; ++i) {
adjustment+=0.1;
for (j = 0; j < 10; ++j) {
var e = document.createElement("div");
e.style.top = (11 * i + j * adjustment) + "px";
e.style.left = (11 * j + i * adjustment) + "px";
container.appendChild(e);
}
}
</script>
</body>
</html>