fn resolve_static_position_grid_area<S: CheapCloneStr>(
child_style: &impl GridItemStyle<CustomIdent = S>,
name_resolver: &NamedLineResolver<S>,
final_row_counts: TrackCounts,
final_col_counts: TrackCounts,
rows: &[GridTrack],
columns: &[GridTrack],
direction: Direction,
border: Rect<f32>,
scrollbar_gutter: Point<f32>,
container_border_box: Size<f32>,
) -> Rect<f32>Expand description
Resolve the static-position rectangle (the grid area determined by the grid-placement properties) for an out-of-flow child of a positioned grid container.
Content alignment (align-content/justify-content) may distribute free space before, between, or after tracks. Grid lines used by absolutely positioned items resolve to the edges of the tracks adjacent to the line rather than to the raw gutter offset:
- As a start edge, a line resolves to the start of the track that follows it
- As an end edge, a line resolves to the end of the track that precedes it