@@ -3548,23 +3548,24 @@ Gutters: the 'row-gap', 'column-gap', and 'gap' properties</h3>
35483548<h3 id='auto-margins'>
35493549Aligning with <a value for="margin">auto</a> margins</h3>
35503550
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=] :
35553553
35563554 <ul>
35573555 <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'' .
35593558
35603559 <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
35623563 prior to alignment via the <a>box alignment properties</a> ,
35633564 thereby disabling the effects of any [=self-alignment properties=]
35643565 in that axis.
35653566
35663567 <li>
3567- Overflowing elements ignore their ''margin/auto'' margins
3568+ Overflowing [=grid items=] resolve their ''margin/auto'' margins to zero
35683569 and overflow as specified by their <a>box alignment properties</a> .
35693570 </ul>
35703571
@@ -4696,6 +4697,10 @@ Changes since the <a href="https://www.w3.org/TR/2020/CRD-css-grid-1-20201218/">
46964697 now that [=non-replaced elements=] can also have an aspect ratio
46974698 via 'aspect-ratio' . [[CSS-SIZING-4]]
46984699 (<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> )
46994704 </ul>
47004705
47014706<h3 id="changes-202008">
0 commit comments