If you’re just using the default float, default flow of elements based on display:block, you can control a grid where elements don’t have the same height. At one point they’re going to bump one on another. What you face isn’t a bug, it’s expected.
See, the 2nd line element is bumping on the 3rd element because it’s higher than the others.