Skip to main content

expand_grid_template_shorthand

Function expand_grid_template_shorthand 

Source
pub(crate) fn expand_grid_template_shorthand(
    specified_values: &mut BTreeMap<String, String>,
)
Expand description

grid-template: <rows> / <columns> および grid-template-areas を含む記法 ("a a" 1fr "b c" 1fr / 1fr 2fr のようにエリア名の文字列リテラルと行トラック サイズが交互に並び、任意で / <columns> が続く)を展開する。 エリア名部分はそのまま grid-template-areas へ、文字列リテラルを取り除いた 残りのトークンを grid-template-rows へ、/ 以降を grid-template-columns へ 展開する。対応する longhand が既に指定されていればそちらを優先する。