Skip to content

Commit c263d20

Browse files
committed
[css-grid][css-align] Clarify handling of collapsed gutters when applying distributed alignment. #1140
1 parent ffe7350 commit c263d20

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

css-align/Overview.bs

+2-2
Original file line numberDiff line numberDiff line change
@@ -744,7 +744,7 @@ Details per Layout Mode {#distribution-details}
744744
<tr>
745745
<th><a lt="alignment subject">Alignment Subject(s)</a>
746746
<td>
747-
The <a>grid tracks</a> in the appropriate axis.
747+
The non-<a spec="css-grid" lt="collapsed track">collapsed</a> <a>grid tracks</a> in the appropriate axis.
748748
<tr>
749749
<th>'align-content' Axis
750750
<td>
@@ -761,9 +761,9 @@ Details per Layout Mode {#distribution-details}
761761
''justify-content/normal'' behaves as ''justify-content/stretch''.
762762
</table>
763763

764+
Any spacing added between tracks is applied to the relevant <a>gutters</a>.
764765
See [[!CSS-GRID-1]] for details.
765766

766-
767767
<h3 id="baseline-align-content">
768768
Baseline Content-Alignment</h3>
769769

css-grid/Overview.bs

+3-1
Original file line numberDiff line numberDiff line change
@@ -1640,7 +1640,9 @@ Repeat-to-fill: ''auto-fill'' and ''auto-fit'' repetitions</h5>
16401640

16411641
A <dfn local-lt=collapse>collapsed track</dfn> is treated as having
16421642
a fixed <a>track sizing function</a> of ''0px'',
1643-
and the <a>gutters</a> on either side of it <a lt="collapsed gutter">collapse</a>.
1643+
and the <a>gutters</a> on either side of it--
1644+
including any space allotted through <a>distributed alignment</a>--
1645+
<a lt="collapsed gutter">collapse</a>.
16441646

16451647
For the purpose of finding the number of auto-repeated tracks,
16461648
the UA must floor the track size to a UA-specified value

0 commit comments

Comments
 (0)