Skip to main content

parse_grid_line_pair

Function parse_grid_line_pair 

Source
pub fn parse_grid_line_pair(
    ctx: &str,
    name: &str,
    value: &str,
) -> Result<(i16, i16), ParseError>
Expand description

Parse grid-row / grid-column <start>[/<end>] values. A single integer = start only, end auto-placed. A pair separated by / = explicit start + end line numbers. CSS span <N> and named lines are out of scope for the W5.9 subset.

pub so lumenc’s grid tests (which drive the parser front-end and therefore stay in lumenc) can exercise it via the parse::css re-export.