blob: a9d4e9523603fd9d1128a8082780030ff2bc932d [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<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;
}
</style>
<script>
function doTest()
{
window.scrollTo(35, 45);
}
window.addEventListener('load', doTest, false);
</script>
</head>
<body>
<div class="box"></div>
<div class="box"></div>
</body>
</html>