Vixen
dd8b0a81
csharp
public readonly record struct GridTrackSize

One track's sizing function: a minimum and a maximum, per CSS Grid §7.2.

Read the guide page for this →

Remarks

⚠ Every track is a minmax() internally, including the ones nobody wrote one for. §12.1 runs on a base size and a growth limit per track, so a bare 100px is minmax(100px, 100px), a bare auto is minmax(auto, auto) and a bare 1fr is minmax(auto, 1fr) — the last of which is the one people are surprised by, and the reason an 1fr track refuses to shrink below its content.

Fields and properties (4)

  • public GridSizingFunction Min

    The minimum sizing function. Never Flex.

  • public GridSizingFunction Max

    The maximum sizing function.

  • public static readonly GridTrackSize Auto

    An auto track, which is the initial value of the implicit sizing functions.

  • public bool IsFlexible

    Whether this track's maximum is a fr, which is what §12.7 grows.

Methods (5)

Used by (12)

  • AutomaticMinimumSizeTestsVixen.Ui.Layout.Tests
  • GridBlindSpotTestsVixen.Ui.Layout.Tests
  • GridSpecVixen.Ui.Layout.Tests
  • GridTemplateAreasTestsVixen.Ui.Layout.Tests
  • GridTrackListVixen.Ui.Layout
  • GridTrackStateVixen.Ui.Layout
  • LayoutTreeVixen.Ui.Layout
  • SafeAlignmentTestsVixen.Ui.Layout.Tests
  • TaffyTrackListParserVixen.Ui.Layout.Tests
  • TaffyTrackListParserTestsVixen.Ui.Layout.Tests
  • TrackArenaVixen.Ui.Layout
  • TrackListPropertyVixen.Ui