<!DOCTYPE html>
<script>
if (window.testRunner)
    testRunner.dumpAsText();
</script>
<p>This test should not crash</p>
<div style="display: grid;">
    <span style="height: 54%; align-self: baseline;" >PASS</span>
</div>

<br>

<div style="display: inline-grid;">
    <span>PASS</span>
    <div style="display: inline-grid; height: 54%; align-self: baseline;" ><span>PASS</span></div>
</div>
