Skip to content

Commit b5b59a6

Browse files
committed
[css-anchor-position-1] Rather than adjusting double-auto insets to achieve centering, just zero them and adjust available space instead.
1 parent c35d053 commit b5b59a6

File tree

1 file changed

+6
-12
lines changed

1 file changed

+6
-12
lines changed

css-anchor-position-1/Overview.bs

+6-12
Original file line numberDiff line numberDiff line change
@@ -780,20 +780,14 @@ makes this case extremely simple:
780780
if the positioned element has a [=default anchor element=],
781781
then it is aligned so as to center itself
782782
over the [=default anchor element=]
783-
in the appropriate axis.
783+
in the relevant axis.
784784

785785
Additionally,
786-
if both [=inset properties=] in the appropriate axis are ''top/auto'',
787-
they resolve to the offsets necessary
788-
to create the largest rectangle possible
789-
that is centered over the [=default anchor element=]
790-
and does not overflow the [=containing block=].
791-
If only one [=inset property=] is ''top/auto'',
792-
it resolves to ''0''.
793-
794-
Issue: See <a href="https://github.com/w3c/csswg-drafts/issues/9124">Issue 9124</a>
795-
about making this the behavior in general
796-
for non-''justify-self/auto'' alignment values.
786+
any ''top/auto'' [=inset properties=] resolve to ''0''.
787+
However, the [=available space=] for the positioned element in the relevant axis
788+
is reduced to the size of the largest rectangle
789+
that is centered on the [=default anchor element=]
790+
and doesn't overflow the [=inset-modified containing block=].
797791

798792
If the element is not [=absolutely positioned=],
799793
or does not have a [=default anchor element=],

0 commit comments

Comments
 (0)