named-grid-areas-no-invalid
禁止无效的命名网格区域。
¥Disallow invalid named grid areas.
a { grid-template-areas:
"a a a"
"b b b"; }
/** ↑
* This named grid area */
为了使命名网格区域有效,所有字符串必须定义:
¥For a named grid area to be valid, all strings must define:
-
相同数量的单元令牌
¥the same number of cell tokens
-
至少一个单元令牌
¥at least one cell token
所有跨越多个网格单元的命名网格区域必须形成一个填充矩形。
¥And all named grid areas that spans multiple grid cells must form a single filled-in rectangle.
选项
¥Options
true
以下模式被视为问题:
¥The following patterns are considered problems:
a { grid-template-areas: "" }
a { grid-template-areas: "a a a"
"b b b b"; }
a { grid-template-areas: "a a a"
"b b a"; }
以下模式不被视为问题:
¥The following pattern is not considered a problem:
a { grid-template-areas: "a a a"
"b b b"; }