it doesn't search for enough room but it search for empty cells to fill.
If for example the first cell is empty and I have grid-auto-flow: dense, the next element will get placed there whatever the dimension of the cell and the element.
ex: https://codepen.io/t_afif/pen/JoGMKKj
