Skip to main content

grid_axis_placement

Function grid_axis_placement 

Source
pub(crate) fn grid_axis_placement(
    b: &LayoutBox<'_>,
    short: &str,
    start_p: &str,
    end_p: &str,
) -> (Option<usize>, usize)
Expand description

グリッドアイテムの 1 軸の配置を解決する。 short(grid-row / grid-column のショートハンド a / b)を優先し、無ければ longhand(*-start / *-end)を読む。戻り値は (明示開始行0始まり, スパン)。 明示開始が無い(auto)の場合は None。