Skip to content

Commit e3bdd3c

Browse files
committed
[css-grid-2] Define the explicit grid of a subgrid and specify how line numbers work more clearly. #2564
1 parent ad9265c commit e3bdd3c

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

css-grid-2/Overview.bs

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,12 +145,22 @@ Characteristics of a Subgrid Item</h3>
145145
rather than by 'grid-template-rows'/'grid-template-columns'.
146146
The track sizes are governed by the parent grid.
147147

148+
The grid lines thus shared between the subgrid and its parent
149+
form the subgrid’s <a>explicit grid</a>.
150+
148151
<li id="subgrid-indexing">
149152
The <a>grid-placement properties</a> of the <a>subgrid</a>’s <a>grid items</a>
150-
are scoped to the lines covered by the subgrid.
151-
E.g., numeric indices count starting from the first line of the subgrid
153+
and the line numbers they use
154+
are scoped to the lines covered by the subgrid,
155+
exactly consistent with the lines outside the subgrid
156+
being excluded from its <a>explicit grid</a>.
157+
E.g. numeric indices count starting from the first line of the subgrid
152158
rather than the first line of the parent grid.
153159

160+
Line numbering and placement rules
161+
obey the subgrid’s own <a>writing mode</a>,
162+
just as they would for a nested independent grid.
163+
154164
<li id="subgrid-line-name-inheritance">
155165
Since <a>subgrids</a> can be placed before their contents are placed,
156166
the subgridded lines

0 commit comments

Comments
 (0)