<!DOCTYPE html>
<p>crbug.com/487775: There should be a green square below (and no assertion failures).</p>
<div>
    <div id="firstChild" style="display:inline-block; width:100px;"></div>
    <div style="display:inline-block; width:100%; height:100px;"></div>
    <div style="float:left; width:100px; height:100px; background:green;"></div>
</div>
<script>
    onload = function() {
        document.body.offsetTop;
        document.getElementById("firstChild").style.width = "101px";
    }
</script>
