Skip to content

Latest commit

 

History

History
59 lines (44 loc) · 1.04 KB

File metadata and controls

59 lines (44 loc) · 1.04 KB

named-grid-areas-no-invalid

Disallow invalid named grid areas.

a { grid-template-areas: 
      "a a a"
      "b b b"; }
/**   ↑
 *  This named grid area */

Options

true

The following patterns are considered violations:

All strings must define the same number of cell tokens.

a { grid-template-areas: "a a a"
                         "b b b b"; }

All strings must define at least one cell token.

a { grid-template-areas: "" }

All named grid areas that spans multiple grid cells must form a single filled-in rectangle.

a { grid-template-areas: "a a a"
                         "b b a"; }

The following patterns are not considered violations:

a { grid-template-areas: "a a a"
                         "b b b"; }
a { grid-template-areas: "a a a" "b b b"; }
a { grid-template-areas: none; }