This test checks that grid tracks are sizing correctly with orthogonal flows, so grid container's intrinsic size is computed accordingly.

Grid using fixed width and height.
All grid items sized with min-{width, height} auto.

XX XXX X XXX XX
X XXX XX XXXXX XX XXX X XXXX X XX
XXXX XX X XX XXX

Grid width under min-content constrain and fixed height.
All grid items sized with min-{width, height} auto.

XX XXX X XXX XX
X XXX XX XXXXX XX XXX X XXXX X XX
XXXX XX X XX XXX

Grid width under max-content constrain and fixed height.
All grid items sized with min-{width, height} auto.

XX XXX X XXX XX
X XXX XX XXXXX XX XXX X XXXX X XX
XXXX XX X XX XXX

Grid width under fit-content constrain and fixed height.
All grid items sized with min-{width, height} auto.

XX XXX X XXX XX
X XXX XX XXXXX XX XXX X XXXX X XX
XXXX XX X XX XXX

Grid with fixed width and height under min-content constrain.
All grid items sized with min-{width, height} auto.

XX XXX X XXX XX
X XXX XX XXXXX XX XXX X XXXX X XX
XXXX XX X XX XXX

Grid with fixed width and height under min-content constrain.
All grid items sized with min-{width, height} auto.

XX XXX X XXX XX
X XXX XX XXXXX XX XXX X XXXX X XX
XXXX XX X XX XXX

Grid with fixed width and height under min-content constrain.
All grid items sized with min-{width, height} auto.

XX XXX X XXX XX
X XXX XX XXXXX XX XXX X XXXX X XX
XXXX XX X XX XXX

Grid using fixed width and height.
All grid items sized with min-width: 0px, min-height: auto.

XX XXX X XXX XX
X XXX XX XXXXX XX XXX X XXXX X XX
XXXX XX X XX XXX

Grid width under min-content constrain and fixed height.
All grid items sized with min-width: 0px, min-height: auto.

XX XXX X XXX XX
X XXX XX XXXXX XX XXX X XXXX X XX
XXXX XX X XX XXX

Grid width under max-content constrain and fixed height.
All grid items sized with min-width: 0px, min-height: auto.

XX XXX X XXX XX
X XXX XX XXXXX XX XXX X XXXX X XX
XXXX XX X XX XXX

Grid with fixed width and height under min-content constrain.
All grid items sized with min-width: auto, min-height: 0px.

XX XXX X XXX XX
X XXX XX XXXXX XX XXX X XXXX X XX
XXXX XX X XX XXX

Grid with fixed width and height under max-content constrain.
All grid items sized with min-width: auto, min-height: 0px.

XX XXX X XXX XX
X XXX XX XXXXX XX XXX X XXXX X XX
XXXX XX X XX XXX

Grid using fixed width and height.
All grid items sized with min-width: 50px, min-height: auto.

XX XXX X XXX XX
X XXX XX XXXXX XX XXX X XXXX X XX
XXXX XX X XX XXX

Grid width under min-content constrain and fixed height.
All grid items sized with min-width: 50px, min-height: auto.

XX XXX X XXX XX
X XXX XX XXXXX XX XXX X XXXX X XX
XXXX XX X XX XXX

Grid width under max-content constrain and fixed height.
All grid items sized with min-width: 50px, min-height: auto.
.

XX XXX X XXX XX
X XXX XX XXXXX XX XXX X XXXX X XX
XXXX XX X XX XXX

Grid with fixed width and height under min-content constrain.
All grid items sized with min-width: auto, min-height: 50px.

XX XXX X XXX XX
X XXX XX XXXXX XX XXX X XXXX X XX
XXXX XX X XX XXX

Grid with fixed width and height under max-content constrain.
All grid items sized with min-width: auto, min-height: 50px.

XX XXX X XXX XX
X XXX XX XXXXX XX XXX X XXXX X XX
XXXX XX X XX XXX