I'm trying to build a grid with 2 rows inside a flex column. The flex container has a minimum height to fill the window. The first line of the grid should fill the available space, so I was thinking of the fr unit. A simplified version may look like that:
.container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.grid {
  flex-grow: 1;
  background-color: red;
  padding: 1rem;
  grid-gap: 1rem;
  display: grid;
  grid-template-rows: 1fr auto;
}
.grid > * {
  background-color: white;
}
<div class="container">
  <h1>some title</h1>
  <div class="grid">
    <div>line 1</div>
    <div>line 2</div>
  </div>
</div>
This works perfectly fine with firefox:
But not with chrome:
What am I missing?

