blob: 6828810c109e9b3f0b218f5ff8b4d402a2e4d368 [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;
first = document.getElementById("first");
first.style['margin-top'] = '100px';
window.checkLayout("#next", document.getElementById("test-output"));
</script>