Skip to content

Commit f38fc86

Browse files
committed
[css-grid-2] Clarify that subgrids don't establish independent formatting contexts.
1 parent 1a06cfb commit f38fc86

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

css-grid-2/Overview.bs

+8-1
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,10 @@ Establishing a Subgrid</h3>
104104
indicates that the grid will adopt the spanned portion of its parent grid in that axis.
105105
Rather than being specified explicitly,
106106
the sizes of the grid rows/columns
107-
will be taken from the parent grid's definition.
107+
will be taken from the parent grid's definition,
108+
and the <a>subgrid</a>’s items will participate
109+
in the <a href="https://www.w3.org/TR/css-grid-1/#algo-content">intrinsic size calculations</a> ([[css-grid-1#algo-content]])
110+
of any tracks shared with the parent grid.
108111

109112
The <<line-name-list>> argument allows local naming of the grid lines propagated from the parent grid:
110113
if a <<line-name-list>> is given,
@@ -117,6 +120,10 @@ Establishing a Subgrid</h3>
117120
the initial value, ''grid-template-rows/none''.
118121
</dl>
119122

123+
Unlike those of a regular nested grid,
124+
a subgrid’s contents participate in its parent <a>grid formatting contex</a>;
125+
thus a subgrid does not establish an <a>independent formatting context</a>.
126+
120127
The syntax of <<line-name-list>> is defined as follows:
121128

122129
<pre class="prod">

0 commit comments

Comments
 (0)