Why do these 2 divs wrap on 300px? Shouldn't they wrap when the element hits the min value in minmax? I tried both auto-fit and auto-fill but it still doesn't work.
.container {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(150px, 300px));
width: 100%;
height: 500px;
}
.item {
height: 100px;
background: blue;
border: 1px solid black;
}
<div class="container">
<div class="item"></div>
<div class="item"></div>
</div>