CodeZettaInterview Hub

CSS · Grid · Senior · Debugging

Why does 1fr behave like minmax(auto, 1fr) and overflow?

Short Interview Answer

Tracks won't shrink below content min by default; use minmax(0,1fr) to allow.

Detailed Explanation

Same family of bugs as flex min-size. Truncation needs overflow hidden + min 0.

Did you know this answer?