Expand description
§CSS Grid Layout
Implements a subset of CSS Grid for 2D layouts within the page-native layout engine. Supports:
- Fixed (pt), fractional (fr), and auto track sizing
- MinMax track sizes
- Explicit grid placement (column/row start/end/span)
- Auto-placement (row-major sparse)
- Row/column gap
- Page breaks at row boundaries
Structs§
- Grid
Item Placement - Resolved grid item placement in the grid.
Functions§
- column_
x_ offset - Compute the x-offset for a column, accounting for gaps.
- compute_
num_ rows - Compute the number of rows needed based on item placements.
- place_
items - Place items in the grid using explicit placement + auto-placement.
- resolve_
tracks - Resolve track sizes to concrete widths/heights in points.
- span_
width - Compute the width of a multi-column span.