blob: 8afdb818fce655e2b7d7c3aba68fc6fba472f849 [file] [log] [blame]
<!DOCTYPE html>
<style>
body {
margin: 0px;
}
#first {
height:100px;
}
#next {
position:absolute;
}
</style>
<script src="../../../resources/check-layout.js"></script>
<div id="container">
<div id="first">a</div>
<div id="next" data-total-y=200>crbug.com/501353: Tests positioned movement layout when margins change.</div>
</div>
<div id="test-output"></div>
<script>
document.body.offsetTop;
container = document.getElementById("container");
container.style['margin-top'] = '100px';
window.checkLayout("#next", document.getElementById("test-output"));
</script>