blob: 9aaa371b505ce06f4e1860bcdd4cafdd2dbd2835 [file] [log] [blame]
<html>
<body onload="runTest()">
<div style="width: 20px;">
<script>
function runTest()
{
document.body.offsetTop;
var container = document.getElementById('panel');
container.style.position = 'relative';
document.getElementById('test1').style.position = 'absolute';
document.getElementById('test2').style.position = 'absolute';
}
</script>
<div id="panel">
<div id="test1">
<img style="float: left; width: 20px; height: 100px; background-color: silver;">
</div>
<div id="test2" style="font-family: ahem;">
<a><p>A B C D</p>
</div>
</div>
</div>
</body>
</html>