-
Notifications
You must be signed in to change notification settings - Fork 765
Closed
Labels
Closed Accepted as EditorialCommenter SatisfiedCommenter has indicated satisfaction with the resolution / edits.Commenter has indicated satisfaction with the resolution / edits.css-grid-1
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 atargumentif it is greater than theautominimum.
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.
Metadata
Metadata
Assignees
Labels
Closed Accepted as EditorialCommenter SatisfiedCommenter has indicated satisfaction with the resolution / edits.Commenter has indicated satisfaction with the resolution / edits.css-grid-1