blob: f689ada87eaa9b670166727428d17fa5fe181ac2 [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;
-webkit-transform: rotate3D(0, 0, 1, 90deg)
}
</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>