<!DOCTYPE html>
<style>
.inlineGrid {
    display: inline-grid;
    grid-template-rows: minmax(100%, max-content);
}
</style>
<script>
if (window.testRunner)
    testRunner.dumpAsText();
</script>
<body>
    <p>The test works as expected if it does not crash.</p>
    <div class="inlineGrid"></div>
</body>
