<!doctype html>
<script>
if (window.testRunner)
    testRunner.dumpAsText();
</script>
<p>This test should not crash</p>
<div style="display: grid;">
    <div id="item" style="align-self: baseline;">PASS</div>
</div>
<script>
    let item = document.getElementById("item");
    item.offsetLeft;
    item.style.width = "20px";
</script>
