Vixen
dd8b0a81
csharp
public enum GridSizingKind

What one half of a track sizing function is measured in.

Read the guide page for this →

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)

  • Auto

    Content-based, and stretchable by align-content/justify-content.

  • MinContent

    The largest minimum any item in the track needs.

  • MaxContent

    The largest maximum any item in the track wants.

  • Points

    An absolute length.

  • Percent

    A fraction of the grid container's content box on this axis.

  • Flex

    A fr: a share of the space left over. Maximum only.

  • FitContent

    A 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