Skip to content

Commit ad4bda1

Browse files
committed
[css-grid-2] Add some notes pointing out the implications of subgrid clamping. w3c#6863
1 parent 82b9212 commit ad4bda1

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

css-grid-2/Overview.bs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3554,6 +3554,15 @@ Subgrids</h2>
35543554
floored at one.
35553555
</ul>
35563556

3557+
Note: The explicit grid determined here can be further truncated
3558+
if the placement of the [=subgrid=] is clamped by its parent grid.
3559+
See <a href="#subgrid-implicit">the "no implicit tracks" bullet point</a>.
3560+
3561+
If the 'grid-template-*' properties specify a <<line-name-list>>
3562+
in a [=subgridded axis=],
3563+
the used value is truncated
3564+
to match the used number of explicit tracks.
3565+
35573566
<li id="subgrid-indexing">
35583567
The <a>grid-placement properties</a> of the <a>subgrid</a>’s <a>grid items</a>
35593568
and the line numbers they use
@@ -3659,6 +3668,12 @@ Subgrids</h2>
36593668
then that item is instead forced into (and limited to) the first (only) track in the subgrid.
36603669
</div>
36613670

3671+
Note: This means that a subgrid might have fewer tracks than it expected,
3672+
if its parent is also a subgrid and therefore has a fixed number of tracks.
3673+
(A subgrid might likewise have fewer tracks than expected
3674+
because its parent is hitting the
3675+
[[#overlarge-grids|UA limit on grid tracks]].)
3676+
36623677
<li id="subgrid-size-contribution">
36633678
The <a>subgrid</a> itself lays out as an ordinary <a>grid item</a> in its [=parent grid=],
36643679
but acts as if it was completely empty for track sizing purposes

0 commit comments

Comments
 (0)