blob: 0066d9cb86a4662add207055d2689cf54c6ad185 [file] [log] [blame]
<body onload="test()">
<div style="font-family: Ahem; font-size: 50px; color: red;">
<span id="float" style="float: left; color: green;">Y</span>Z
</div>
<script>
function test()
{
document.body.offsetTop;
document.getElementById("float").style.position = "absolute";
}
</script>
</body>