Expand description
Implements placing items in the grid and resolving the implicit grid. https://www.w3.org/TR/css-grid-1/#placement
FunctionsΒ§
- advance_
position π - Advances the cursor by one track.
- clamp_
span_ πto_ limited_ grid - Clamp a placement into the limited grid, preserving a span of at least 1 track. Items placed outside of the limited grid are clamped into it.
- place_
definite_ πgrid_ item - 8.5. Grid Item Placement Algorithm Place a single definitely placed item into the grid
- place_
definite_ πsecondary_ axis_ item - 8.5. Grid Item Placement Algorithm Step 2. Place remaining children with definite secondary axis positions
- place_
grid_ πitems - 8.5. Grid Item Placement Algorithm Place items into the grid, generating new rows/column into the implicit grid as required
- place_
indefinitely_ πpositioned_ item - 8.5. Grid Item Placement Algorithm Step 4. Position the remaining grid items.
- record_
grid_ πplacement - Record the grid itemβs placement in both the CellOccupancyMatrix and the item itself once a definite placement has been determined
- resolve_
indefinite_ πgrid_ span - Resolves an indefinite span starting at
position.
Type AliasesΒ§
- Item
Placement π - A grid itemβs
grid-row/grid-columnstyles with named lines resolved, in origin-zero coordinates