Skip to content

Commit 18fddb0

Browse files
committed
[css-grid] Define the explicit grid even when there are no tracks.
1 parent 97ffa86 commit 18fddb0

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

css-grid/Overview.bs

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -914,12 +914,15 @@ The Explicit Grid</h2>
914914
and the number of rows/columns sized by 'grid-template-rows'/'grid-template-columns'.
915915
Any rows/columns defined by 'grid-template-areas' but not sized by 'grid-template-rows'/'grid-template-columns'
916916
take their size from the 'grid-auto-rows'/'grid-auto-columns' properties.
917+
If these properties don't define <em>any</em> <a>explicit</a> tracks,
918+
the <a>explicit grid</a> still contains one <a>grid line</a> in each axis.
917919

918920
Numeric indexes in the <a>grid-placement properties</a>
919-
count from the edges of the <a>explicit grid</a>,
920-
starting from 1.
921-
Positive indexes count from the before/start side,
922-
while negative indexes count from the after/end side.
921+
count from the edges of the <a>explicit grid</a>.
922+
Positive indexes count from the <a>start</a> side
923+
(starting from 1 for the <a>start</a>-most <a>explicit</a> line),
924+
while negative indexes count from the <a>end</a> side
925+
(starting from -1 for the <a>end</a>-most <a>explicit</a> line).
923926

924927
<h3 id='track-sizing'>
925928
Track Sizing: the 'grid-template-rows' and 'grid-template-columns' properties</h3>

0 commit comments

Comments
 (0)