blob: 137bc52672b17ac27f53aba9290b2a44cdb95062 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<meta name="fuzzy" content="maxDifference=0-1; totalPixels=0-35" />
<style>
body {
height: 2000px;
width: 2000px;
overflow: hidden;
}
.box {
height: 300px;
width: 300px;
margin: 20px;
margin-left: 10px;
background-image: url('../resources/alpha-blocks.png');
background-size: 500px 300px;
background-repeat: no-repeat;
background-attachment: fixed;
box-shadow: 0 0 10px black; /* inflates composited bounds */
border: 4px solid gray;
float: left;
}
.composited {
-webkit-transform: translateZ(0);
}
</style>
<script>
function doTest()
{
window.scrollTo(35, 45);
}
window.addEventListener('load', doTest, false);
</script>
</head>
<body>
<div class="composited box"></div>
<div class="composited box"></div>
</body>
</html>