blob: 82bf1493a17c78fb7cbf626bc3577484e16e04f5 [file] [log] [blame]
<!doctype html>
<style>
body {
margin: 0px;
padding: 0px;
}
div {
position: absolute;
margin-top: 10px;
}
</style>
<div id="positioned" data-total-y=50>crbug.com/332860: There's no need to layout an absolute positioned element's parent if its margin changes.</div>
<script src="../../../resources/check-layout.js"></script>
<script>
document.body.offsetLeft;
document.getElementById('positioned').style.setProperty("margin-top",'50px');
checkLayout("#positioned");
</script>