min-width: 0 (flex ellipsis gotcha)

Mr. Karim’s stall signs with a long title that will not truncate: the browser measures the room flex: 1 offers, the item’s min-content and how far it spills…

Why it matters

This is the most common "why does it not work" bug in modern layout: an ellipsis in flex, a chat list that will not scroll, a 1fr grid column that stretches, a <pre> pushing the page wider. All one cause: an item’s automatic floor. Once you see the floor, the cure is plain: min-width: 0, min-height: 0, overflow, or minmax(0, 1fr).

The key idea

A flex item has a floor: min-width: auto = min-content, not 0

Common mistakes

Try it in this playground