blob: 83ed9834d8f4742d17927e797ed8ae3533f6d132 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<style>
html { overflow: hidden; }
div { height: 100px; width: 100px; }
.fixed { position: fixed; }
.absolute { position: absolute; }
.green { background-color: green; }
.red { background-color: red; }
.composited { -webkit-transform: translateZ(0); }
</style>
<script type="text/javascript">
if (window.testRunner)
testRunner.dumpAsText(true);
function moveAbsoluteDiv()
{
document.getElementById('absoluteDiv').style.top = '700px';
}
window.addEventListener('load', moveAbsoluteDiv, false);
</script>
</head>
<body style="height:2000px;">
<!-- You should see 1 green rectangle in the output and no red. -->
<div style="top: 200px; left: 100px;" class="fixed red"></div>
<div id="absoluteDiv" style="top: 500px; left:100px;" class="absolute green composited"></div></div>
<script>
window.scrollTo(0, 500);
</script>
</body>
</html>