blob: 3eac9c4911f1120a367b2594ad3a19c12b51b11d [file] [log] [blame]
<!DOCTYPE html>
<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: 10px 10px 0px gray; /* inflates composited bounds */
border: 4px solid gray;
float: left;
}
</style>
<script>
function doTest()
{
window.scrollTo(35, 45);
}
window.addEventListener('load', doTest, false);
</script>
<div class="box"></div>
<div class="box"></div>