Skip to main content

Module placement

Module placement 

Source
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 in both CellOccupancyMatric and the GridItems list once a definite placement has been determined
resolve_indefinite_grid_span ๐Ÿ”’
Resolves an indefinite span starting at position.