Skip to content

Commit

Permalink
[css-grid-1] Require grid-template-areas to define at least one grid …
Browse files Browse the repository at this point in the history
…cell. #5110
  • Loading branch information
tabatkins committed Jul 22, 2020
1 parent 0a09543 commit 4e81c04
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion css-grid-1/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -2108,7 +2108,9 @@ Named Areas: the 'grid-template-areas' property</h3>
and makes the declaration invalid.
</ul>

All strings must have the same number of columns,
All strings must define the same number of cell tokens
([=named cell tokens=] and/or [=null cell tokens=]),
and at least one cell token,
or else the declaration is invalid.
If a <a>named grid area</a> spans multiple <a>grid cells</a>,
but those cells do not form a single filled-in rectangle,
Expand Down Expand Up @@ -5031,6 +5033,10 @@ Minor Changes</h4>
is <a lt="generate baselines">generated</a> from
the shared <a>alignment baseline</a> of those <a>grid items</a>.
</blockquote>

<li id="change-2017-at-least-one-cell">
Required 'grid-template-areas' to define at least one cell in the grid;
''grid-template-areas: "" "";'' is invalid.
</ul>

<h4 id="clarify-2017">
Expand Down

0 comments on commit 4e81c04

Please sign in to comment.