Style.Grid_auto_flowSourceCSS grid-auto-flow property.
Controls whether grid items are placed row-wise or column-wise, and whether the sparse or dense packing algorithm is used.
The dense packing algorithm attempts to fill in holes earlier in the grid if smaller items come up later. This may cause items to appear out-of-order when doing so would fill in holes left by larger items.
See MDN: grid-auto-flow.
type t = | RowItems are placed by filling each row in turn, adding new rows as necessary.
*)| ColumnItems are placed by filling each column in turn, adding new columns as necessary.
*)| Row_denseItems are placed by filling rows first, using the dense packing algorithm.
*)| Column_denseItems are placed by filling columns first, using the dense packing algorithm.
*)to_string flow converts flow to its CSS string representation.
Returns "row", "column", "row dense", or "column dense".
compare a b provides total ordering of grid auto flow values.
The ordering is Row < Column < Row_dense < Column_dense.
pp fmt flow prints flow to fmt using its CSS string representation.
is_dense flow returns true if flow uses the dense packing algorithm.
Returns true for Row_dense and Column_dense, false otherwise.
primary_axis flow returns the axis along which items are placed first.
Returns Inline for row-based flows (Row and Row_dense), and Block for column-based flows (Column and Column_dense).