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 in the active search direction.
- axis_
is_ πreversed - Returns whether placement/search should run in reverse for this axis.
- clamp_
span_ πfor_ axis - Clamps a span using bounds transformed into the axisβs placement coordinates.
- 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.
- maybe_
mirror_ πspan - Mirrors horizontal spans for RTL while leaving all other spans unchanged.
- mirror_
horizontal_ πspan - Mirrors a horizontal span around the explicit grid width.
- 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 in both CellOccupancyMatric and the GridItems list once a definite placement has been determined
- resolve_
indefinite_ πgrid_ span - Resolves an indefinite span at
position, respecting the active axis direction. - search_
start_ πline - Returns the initial search line for sparse/dense placement in the given axis direction.