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