in chrome you can add this in your stylesheet at the end
.item:nth-child(n+3):last-child {
background: #000;
break-before: column;
}
if you have 3 items, the 3th item moves to the right, if a forth comes in then it goes back under 2nd.
if you have 5 items, the 5th item moves to the right, if a sixth comes in then it goes back under 4th.
but I cannot make it work on firefox, I think the column/break compatibility still is not that good on mozilla
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…