Skip to content

Commit e312b9b

Browse files
committed
[css-position-3] auto margin resolution of negative remaining space is different in vertical vs horizontal axes per CSS2. w3c#5374
1 parent 8537798 commit e312b9b

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
@@ -908,10 +908,13 @@ Auto Margins of Absolutely-Positioned Boxes</h3>
908908
minus the box's used size in the relevant axis,
909909
and this <var>remaining space</var> is divided among
910910
any ''margin/auto'' margins in the relevant axis.
911-
However, if the <var>remaining space</var> is negative
911+
However, if
912+
(all with respect to the [=writing mode=] of the [=containing block=]),
913+
in the [=inline axis=]
914+
the <var>remaining space</var> is negative
912915
and both margins are ''margin/auto'',
913-
the start margin resolves to zero
914-
and the end margin receives the <var>remaining space</var>.
916+
the [=inline-start|start=] margin resolves to zero
917+
and the [=inline-end|end=] margin receives the <var>remaining space</var>.
915918

916919
<h2 id="abspos-old">
917920
Old Absolute Positioning Layout Model</h2>

0 commit comments

Comments
 (0)