You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[css-anchor-position] Is it intended that (justify|align)-items: anchor-center doesn't apply to anchored abspos boxes with (justify|align)-items: auto? #13514
anchor-center was explicitly added to (justify|align)-items.
But these will never apply to abspos boxes, because (justify|align)-self: auto for abspos boxes do not refer to(justify|align)-items at all:
Behaves as normal if the box has no parent, or when determining the actual position of an absolutely positioned box.
So it seems only relevant when we compute the hypothetical box, where it ends up becoming center (Since we're pretending to be static-positioned).
Wanted to confirm if this is the intended behaviour.
The CSSWG will automatically accept this resolution one week from now if no objections are raised here. Anyone can add an emoji to this comment to express support. If you do not support this resolution, please add a new comment.
Proposed Resolution: Remove anchor-center from align-items and justify-items
Reacted by Ting-Yu Lin, dshin-moz and Tab Atkins-Bittner
The CSS Working Group just discussed [css-anchor-position] Is it intended that `(justify|align)-items: anchor-center` doesn't apply to anchored abspos boxes with `(justify|align)-items: auto`?, and agreed to the following:
RESOLVED: Remove anchor-center from justify-items / align-items
The full IRC log of that discussion
<emilio> TabAtkins: when we added anchor-center to justify / align props we added them to justify-/align-items but abspos boxes never look at the items value
<emilio> ... so it just always takes the fallback value
<emilio> ... fantasai and I agree that that's not great
<emilio> ... we've already removed the values from the spec
<emilio> ... wanted to double check with the WG
<emilio> emilio: sgtm
<emilio> PROPOSED: Remove anchor-center from justify-items / align-items
<emilio> RESOLVED: Remove anchor-center from justify-items / align-items
Activity
fantasai commentedon Mar 3, 2026
Good point. Maybe we should remove these values from *-items.
[css-anchor-position-1] Remove anchor-center from align/justify-items #…
fantasai commentedon Mar 27, 2026
Confirmed with @tabatkins and edited in. Async agenda+ to double-check with the WG.
astearns commentedon Mar 30, 2026
The CSSWG will automatically accept this resolution one week from now if no objections are raised here. Anyone can add an emoji to this comment to express support. If you do not support this resolution, please add a new comment.
Proposed Resolution: Remove
anchor-centerfromalign-itemsandjustify-itemscss-meeting-bot commentedon Apr 2, 2026
The CSS Working Group just discussed
[css-anchor-position] Is it intended that `(justify|align)-items: anchor-center` doesn't apply to anchored abspos boxes with `(justify|align)-items: auto`?, and agreed to the following:RESOLVED: Remove anchor-center from justify-items / align-itemsThe full IRC log of that discussion
<emilio> TabAtkins: when we added anchor-center to justify / align props we added them to justify-/align-items but abspos boxes never look at the items value<emilio> ... so it just always takes the fallback value
<emilio> ... fantasai and I agree that that's not great
<emilio> ... we've already removed the values from the spec
<emilio> ... wanted to double check with the WG
<emilio> emilio: sgtm
<emilio> PROPOSED: Remove anchor-center from justify-items / align-items
<emilio> RESOLVED: Remove anchor-center from justify-items / align-items
[align] Disable anchor-center on align-items/justify-items.
[align] Disable anchor-center on align-items/justify-items.
[align] Disable anchor-center on align-items/justify-items.
[align] Disable anchor-center on align-items/justify-items. (#59013)
Bug 2030611 [wpt PR 59013] - [align] Disable anchor-center on align-i…
Bug 2030611 [wpt PR 59013] - [align] Disable anchor-center on align-i…
Bug 2030611 [wpt PR 59013] - [align] Disable anchor-center on align-i…
Bug 2030611 [wpt PR 59013] - [align] Disable anchor-center on align-i…
Bug 2030611 [wpt PR 59013] - [align] Disable anchor-center on align-i…
Bug 2030611 [wpt PR 59013] - [align] Disable anchor-center on align-i…