blob: 71afab5268f59a31bd351873f9f2334a3f6e0b8f [file] [log] [blame]
<div>
<div style="display: inline-block; height: 0; width: 50px;">
<div style="width: 50px; height: 50px; background-color: green;"></div>
</div>
<div id="float" style="float: left; height: 50px; width: 50px; background-color: red;"></div>
</div>
<script>
document.body.offsetTop;
document.getElementById("float").style.display = "none";
</script>