blob: 3244083a5ff822509529d19db20ebf0a27dfb812 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<title>This tests if flooring the transformed boxes' coordinates produce the same result as if compositing transform is present.</title>
<head>
<style>
div {
background: green;
width: 5px;
height: 5px;
position: absolute;
-webkit-transform: rotate(0deg);
}
</style>
</head>
<body>
<p id="container"></p>
<script>
var container = document.getElementById("container");
for (i = 0; i < 40; ++i) {
adjustment = 0.25;
for (j = 0; j < 40; ++j) {
var e = document.createElement("div");
e.style.top = (i * 5 + adjustment) + "px";
e.style.left = ( j * 5 + adjustment) + "px";
container.appendChild(e);
adjustment+=0.05;
}
}
</script>
</body>
</html>