You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The <ahref=#subgrid>subgrid</a>'s own grid items participate in the sizing of its parent grid and are aligned to it.
1094
1094
In this process, the sum of the item's margin, padding, and borders are applied as an extra layer of margin to the items at those edges.
1095
+
However, any overflow tracks
1096
+
(i.e. those outside the <ahref=#explicit-grid>explicit grid</a> when the <ahref=#subgrid>subgrid</a> has a <ahref=#definite>definite grid span</a>)
1097
+
do not correspond to any tracks in the parent grid;
1098
+
they effectively extend in a third dimension.
1099
+
(For example, if a parent grid has adjacent tracks <var>A</var>, <var>B</var>, and <var>C</var>,
1100
+
and a <spanclass=cssdata-link-type=maybe>span 1</span> subgrid with an extra <ahref=#implicit-grid-tracks>implicit grid track</a> is placed in track <var>B</var>,
1101
+
the items in that <ahref=#implicit-grid-tracks>implicit grid track</a> are not considered part of track <var>B</var>.)
1095
1102
1096
1103
<li>
1097
1104
The <ahref=#subgrid>subgrid</a> is always stretched;
1098
1105
the <aclass=propertydata-link-type=propdeschref=http://dev.w3.org/csswg/css-align-3/#align-selftitle=align-self>align-self</a>/<aclass=propertydata-link-type=propdeschref=http://dev.w3.org/csswg/css-align-3/#justify-selftitle=justify-self>justify-self</a> properties on it are ignored.
1099
1106
Any specified width/height constraints are also ignored.
1100
1107
1101
1108
<li>
1102
-
The<ahref=#subgrid>subgrid</a>’s <ahref=#explicit-grid>explicit grid</a> is always aligned with the corresponding section of the parent <ahref=#grid>grid</a>;
1109
+
Layoutwise, the<ahref=#subgrid>subgrid</a>’s <ahref=#explicit-grid>explicit grid</a> is always aligned with the corresponding section of the parent <ahref=#grid>grid</a>;
1103
1110
the <aclass=propertydata-link-type=propdeschref=http://dev.w3.org/csswg/css-align-3/#align-contenttitle=align-content>align-content</a>/<aclass=propertydata-link-type=propdeschref=http://dev.w3.org/csswg/css-align-3/#justify-contenttitle=justify-content>justify-content</a> properties on it are ignored.
1111
+
However, <aclass=propertydata-link-type=propdeschref=http://dev.w3.org/csswg/css-overflow-3/#overflowtitle=overflow>overflow</a> does apply,
1112
+
so the contents of the subgrid can be scrolled aside.
1113
+
(Scrolling does not affect layout.)
1104
1114
1105
1115
<li>
1106
1116
Explicit named lines can also be specified together with the <adata-link-type=valuehref=#valuedef-subgrid>subgrid</a> keyword;
1107
1117
these names apply to the corresponding lines taken from the parent <ahref=#grid>grid</a>.
1108
1118
If the <ahref=#subgrid>subgrid</a> has an explicit <ahref=#grid-span>grid span</a>,
1109
-
any names for lines beyond the span are ignored.
1119
+
any names specified for lines beyond the span are ignored.
1110
1120
If the <ahref=#subgrid>subgrid</a> has an explicit <ahref=#grid-position>grid position</a> as well as an explicit <ahref=#grid-span>grid span</a>,
1111
1121
it also automatically receives the names of the lines that it covers in its parent <ahref=#grid>grid</a>.
0 commit comments