blob: d41ae71bf778b39967596a735bc9b19f092259b6 [file] [log] [blame]
<style>
.outer {
position: absolute;
width: 100px;
height: 100px;
background-color: red;
}
.inner {
position: fixed;
width: 100px;
height: 100px;
background-color: green;
}
</style>
<!-- Pass if no red -->
<div id=moveThis class=outer><div><div class=inner></div></div></div>
<script>
document.body.offsetHeight;
moveThis.style.left = "100px";
</script>