Skip to main content

expand_grid_shorthand

Function expand_grid_shorthand 

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

grid ショートハンド(CSS Grid §7.8)を longhand へ展開する。

  • none / <grid-template>(rows / columns・エリア名の文字列つき記法)は grid-template へ。
  • <rows> / auto-flow [dense] <auto-columns>? → grid-auto-flow:column、grid-auto-columns
  • auto-flow [dense] <auto-rows>? / <columns> → grid-auto-flow:row、grid-auto-rows

対応する longhand が既に指定されていればそちらを優先する。