blob: 25a1231ef080058129d4ec3fecf27580fc50f652 [file] [log] [blame]
<!DOCTYPE HTML>
<style>
body {
margin: 0;
}
#test {
position: absolute;
background-color: green;
top: 0;
left: 0;
right: 0;
}
</style>
<script src="../../../resources/check-layout.js"></script>
<script>
function runTest()
{
var test = document.getElementById('test');
document.body.offsetTop;
test.style['bottom'] = '50%';
document.body.offsetTop;
test.style['bottom'] = 'auto';
window.checkLayout("#test");
}
window.onload = runTest;
</script>
Tests positioned movement layout when its height is changed by top/bottom changing from auto to fixed and back again.
<div id="test" data-expected-height=0></div>