Skip to content

Commit 4fae49a

Browse files
committed
[css-flexbox] Per #665, specify that auto margins are treated as zero when finding the static position. (This statement should be generically applied in css-position, but that spec isn't maintained atm.)
1 parent 25a917b commit 4fae49a

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

css-flexbox/Overview.bs

+11-1
Original file line numberDiff line numberDiff line change
@@ -675,7 +675,8 @@ Absolutely-Positioned Flex Children</h3>
675675
assuming both the child and the flex container
676676
were fixed-size boxes of their used size.
677677
For this purpose,
678-
a value of ''align-self: auto'' is treated identically to ''align-self/start''.
678+
a value of ''align-self: auto'' is treated identically to ''align-self/start'',
679+
and ''margin/auto'' margins are treated as zero.
679680

680681
<div class="note">
681682
In other words,
@@ -3430,6 +3431,15 @@ Substantive Changes and Bugfixes</h4>
34303431
were all part of the table box's border+padding area,
34313432
and the table box were the <a>flex item</a>.</p></ins>
34323433
</blockquote>
3434+
<li id="change-2016-auto-margin-abspos">
3435+
Clarified that auto margins are treated as zero
3436+
for the purpose of calculating a absolutely-positioned flex container child’s static position.
3437+
(<a href="https://github.com/w3c/csswg-drafts/issues/665">Issue 665</a>)
3438+
<blockquote>
3439+
<p>For this purpose,
3440+
a value of ''align-self: auto'' is treated identically to ''align-self/start''<ins>,
3441+
and ''margin/auto'' margins are treated as zero</ins>.</p>
3442+
</blockquote>
34333443
</ul>
34343444

34353445
<h4 id="change-201605-clarify">

0 commit comments

Comments
 (0)