@jaffathecake That's because fr is not a static size but a flex factor (like in flex-grow). But it's tempting to think of it as some kind of percentage value.
@wortwart I don't think it's that straight forward.
It's weird to say that 1fr in grid-templates means minmax(auto, 1fr) by default, because then you have to carve out an exception to avoid recursion (which the spec does).
@jaffathecake I've stumbled across this and found it really strange too. Why doesn't mimmax(auto, 1fr) limit it to max(1fr), isn't that the point of mimmax??? MDN has the answer, of course: "If max < min, then max is ignored and minmax(min,max) is treated as min". What?!?!
Add comment