Skip to main content

parse_grid_template_areas

Function parse_grid_template_areas 

Source
pub fn parse_grid_template_areas(input: &str) -> Result<GridTemplateAreas, ()>
Expand description

Parse grid-template-areas CSS value.

Accepts quoted row strings like: "header header header" "sidebar main aside" "footer footer footer"

Returns a GridTemplateAreas with deduplicated named areas and their computed row/column line boundaries (1-based, as taffy expects).