public enum GridSizingKindWhat one half of a track sizing function is measured in.
Remarks
⚠ This is deliberately not LayoutUnit, and the reason is fr. A flexible length is not a length: CSS Grid §7.2.3 says it resolves against the leftover space after every non-flexible track has taken its share, so it has no value at all until §12.7 runs. Adding it to LayoutUnit would put a unit into StyleLength that every flex-path Resolve would answer NaN for and no flex-path caller would know to ask about — a silent zero in the one place the store has no oracle. Grid gets its own vocabulary instead, which is the same reason it gets its own algorithm.
FitContent is a maximum only. CSS Grid §7.2.2 defines fit-content(x) as minmax(auto, max-content) with the result clamped by x, so it is stored as that clamp and never appears as a minimum.
Fields and properties (7)
AutoContent-based, and stretchable by align-content/justify-content.
MinContentThe largest minimum any item in the track needs.
MaxContentThe largest maximum any item in the track wants.
PointsAn absolute length.
PercentA fraction of the grid container's content box on this axis.
FlexA fr: a share of the space left over. Maximum only.
FitContentA max-content maximum, clamped by an argument. Maximum only.
Used by (4)
- GridSizingFunctionVixen.Ui.Layout
- GridTrackSizeVixen.Ui.Layout
- LayoutTreeVixen.Ui.Layout
- TaffyTrackListParserTestsVixen.Ui.Layout.Tests