@@ -4086,21 +4086,24 @@ Gutters: the 'row-gap', 'column-gap', and 'gap' properties</h3>
4086
4086
<h3 id='auto-margins'>
4087
4087
Aligning with <a value for="margin">auto</a> margins</h3>
4088
4088
4089
- <em> This section is non-normative.
4090
- The normative definition of how margins affect grid items is in [[#layout-algorithm]] .</em>
4091
-
4092
- Auto margins on <a>grid items</a> have an effect very similar to auto margins in block flow:
4089
+ Auto [=margins=] on <a>grid items</a> have an effect
4090
+ very similar to auto margins in [=block layout=] :
4093
4091
4094
4092
<ul>
4095
4093
<li>
4096
- During calculations of <a>grid track</a> sizes, auto margins are treated as ''0'' .
4094
+ During calculations of <a>grid track</a> sizes,
4095
+ ''margin/auto'' margins are treated as ''0'' .
4097
4096
4098
4097
<li>
4099
- ''margin/auto'' margins absorb positive free space
4100
- prior to alignment via the <a>box alignment properties</a> .
4098
+ As defined for the [=inline axis=] of [=block layout=]
4099
+ (see <a href="https://www.w3.org/TR/CSS2/visudet.html#blockwidth">CSS2§10.3.3</a> ),
4100
+ ''margin/auto'' margins in either axis absorb positive free space
4101
+ prior to alignment via the <a>box alignment properties</a> ,
4102
+ thereby disabling the effects of any [=self-alignment properties=]
4103
+ in that axis.
4101
4104
4102
4105
<li>
4103
- Overflowing elements ignore their ''margin/auto'' margins
4106
+ Overflowing [=grid items=] resolve their ''margin/auto'' margins to zero
4104
4107
and overflow as specified by their <a>box alignment properties</a> .
4105
4108
</ul>
4106
4109
@@ -5330,6 +5333,10 @@ Changes since the <a href="https://www.w3.org/TR/2020/CRD-css-grid-2-20201218/">
5330
5333
now that [=non-replaced elements=] can also have an aspect ratio
5331
5334
via 'aspect-ratio' . [[CSS-SIZING-4]]
5332
5335
(<a href="https://github.com/w3c/csswg-drafts/issues/6069">Issue 6069</a> )
5336
+ <li id="change-2020-auto-margins">
5337
+ Made [[#auto-margins]] normative and tightened up wording,
5338
+ since some aspects of this behavior were not otherwise defined elsewhere.
5339
+ (part of <a href="https://github.com/w3c/csswg-drafts/issues/5923">Issue 5923</a> )
5333
5340
</ul>
5334
5341
5335
5342
<h3 id="changes-202008">
0 commit comments