</p>
<div class="container ref"><div class="child">X</div></div>
<div class="container grid"><div class="child" id="item">X</div></div>
<script>
    item.offsetLeft;
    item.style.width = "0px";
    item.offsetLeft;
    item.style.width = "auto";
</script>
