@@ -3548,23 +3548,24 @@ Gutters: the 'row-gap', 'column-gap', and 'gap' properties</h3>
3548
3548
<h3 id='auto-margins'>
3549
3549
Aligning with <a value for="margin">auto</a> margins</h3>
3550
3550
3551
- <em> This section is non-normative.
3552
- The normative definition of how margins affect grid items is in [[#layout-algorithm]] .</em>
3553
-
3554
- Auto margins on <a>grid items</a> have an effect very similar to auto margins in block flow:
3551
+ Auto [=margins=] on <a>grid items</a> have an effect
3552
+ very similar to auto margins in [=block layout=] :
3555
3553
3556
3554
<ul>
3557
3555
<li>
3558
- During calculations of <a>grid track</a> sizes, auto margins are treated as ''0'' .
3556
+ During calculations of <a>grid track</a> sizes,
3557
+ ''margin/auto'' margins are treated as ''0'' .
3559
3558
3560
3559
<li>
3561
- ''margin/auto'' margins absorb positive free space
3560
+ As defined for the [=inline axis=] of [=block layout=]
3561
+ (see <a href="https://www.w3.org/TR/CSS2/visudet.html#blockwidth">CSS2§10.3.3</a> ),
3562
+ ''margin/auto'' margins in either axis absorb positive free space
3562
3563
prior to alignment via the <a>box alignment properties</a> ,
3563
3564
thereby disabling the effects of any [=self-alignment properties=]
3564
3565
in that axis.
3565
3566
3566
3567
<li>
3567
- Overflowing elements ignore their ''margin/auto'' margins
3568
+ Overflowing [=grid items=] resolve their ''margin/auto'' margins to zero
3568
3569
and overflow as specified by their <a>box alignment properties</a> .
3569
3570
</ul>
3570
3571
@@ -4696,6 +4697,10 @@ Changes since the <a href="https://www.w3.org/TR/2020/CRD-css-grid-1-20201218/">
4696
4697
now that [=non-replaced elements=] can also have an aspect ratio
4697
4698
via 'aspect-ratio' . [[CSS-SIZING-4]]
4698
4699
(<a href="https://github.com/w3c/csswg-drafts/issues/6069">Issue 6069</a> )
4700
+ <li id="change-2020-autm-margins">
4701
+ Made [[#auto-margins]] normative and tightened up wording,
4702
+ since some aspects of this behavior were not otherwise defined elsewhere.
4703
+ (part of <a href="https://github.com/w3c/csswg-drafts/issues/5923">Issue 5923</a> )
4699
4704
</ul>
4700
4705
4701
4706
<h3 id="changes-202008">
0 commit comments