Skip to main content

parse_grid_template_areas

Function parse_grid_template_areas 

Source
pub(crate) fn parse_grid_template_areas(s: &str) -> Vec<Vec<String>>
Expand description

grid-template-areas を解析する。各文字列リテラル(クォートされた1行)が1グリッド行、 空白区切りのトークンがその行の各列のセル名になる。. は未使用セル(名前なし)扱い。 例: "header header" "sidebar content" → [[“header”,“header”],[“sidebar”,“content”]]