Closed
Description
From https://drafts.csswg.org/css-grid/#valdef-grid-template-columns-fit-content,
fit-content( <length-percentage> )
Represents the formulamin(max-content, max(auto, argument))
, which is calculated likeminmax(auto, max-content)
, except that the track size is clamped atargument
if it is greater than theauto
minimum.
This definition seems very confusing to me. For starters, auto
has different meaning as a minumim than as a maximum, so it's not clear how min(max-content, max(auto, argument))
should be calculated.
In "the track size is clamped at argument
", it's not clear whether this is a flooring or a ceiling. Usually "clamp" refers to an interval, not a single value.
In "if it is greater" it's not clear whether "it" refers to argument
or to the track size.