Skip to main content

parse_flex_gap

Function parse_flex_gap 

Source
pub(crate) fn parse_flex_gap(node: &StyledNode<'_>, base: i32) -> (i32, i32)
Expand description

flex の gap を (row_gap, column_gap) px で返す。gap ショートハンド + row-gap/column-gap%base(コンテナ content 幅)基準で解決する。