Skip to content

Commit 68ff781

Browse files
committed
[css-position-3] Clarify interaction of auto margins and stretch alignment sizing #11902
1 parent 6fe8590 commit 68ff781

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

css-position-3/Overview.bs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -909,19 +909,19 @@ Absolute Positioning Layout Model</h2>
909909
<h3 id="abspos-auto-size">
910910
Automatic Sizes of Absolutely-Positioned Boxes</h3>
911911

912-
The [=automatic size=] of an [=absolutely positioned box=] is resolved against its [=inset-modified containing block=] as follows
913-
(treating ''margin/auto'' [=margins=] as zero):
912+
The [=automatic size=] of an [=absolutely positioned box=]
913+
is resolved against its [=inset-modified containing block=] as follows:
914914

915915
<dl class=switch>
916916
: If its [=self-alignment property=] in the relevant axis is ''align-self/stretch''
917+
and neither of its [=inset properties=] nor [=margins=] in that axis are ''margin/auto''
917918
: Or if it is ''align-self/normal''
918919
and the box is [=non-replaced=],
919920
not a [=table wrapper box=],
920921
and has no ''inset/auto'' [=inset property|inset=] in the relevant axis
921922
::
922923
Its [=automatic size=] is its [=stretch-fit size=].
923924

924-
925925
: Otherwise
926926
::
927927
Its [=automatic size=] is its [=fit-content size=].
@@ -937,6 +937,9 @@ Automatic Sizes of Absolutely-Positioned Boxes</h3>
937937
An [=automatic size=] in the [=ratio-determining axis=]
938938
is determined as above.
939939

940+
For the purpose of computing these sizes,
941+
any ''margin/auto'' [=margins=] are treated as zero.
942+
940943
The [=automatic minimum size=] of an absolutely-positioned box is always zero.
941944

942945
Note: To the extent that form controls can be resized

0 commit comments

Comments
 (0)