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-position-3][css-align-3] Handling center alignment for abspos boxes with auto/normal self-alignment and center item alignment in parent #12542
In the above example, Gecko and Blink both center align the box vertically within the grid's content box, which seems reasonable to me. However, I was trying to find some spec text which explains how this exactly occurs to rationalize it but was struggling to find something. According to my current reading, what it looks like should be occurring is something along the lines of:
I assume the intention is for the box to be center aligned, but it seems to be a bit at odds with the current state of the spec. Should the normal behavior of an abspos box be adjusted in this case to take this into consideration? Or perhaps are Gecko and Blink referring to a different part of the spec that results in this rendering?
The Houdini Task Force just discussed [css-position-3][css-align-3] Handling center alignment for abspos boxes with auto/normal self-alignment and center item alignment in parent, and agreed to the following:
RESOLVED: in a statically positioned axis, normal self-alignment *does* take from the parent's justify/align-items property
The full IRC log of that discussion
<alisonmaher> TabAtkins: this is the exact question we resolved on
<alisonmaher> fantasai: that was just the axis
<alisonmaher> 2
<alisonmaher> TabAtkins: we have align self on abspos. The normal keyword always resolves to stretch and start not align items. Need static pos exception
<alisonmaher> ...behavior of normal keyword needs to look at parent align items or justify when calculating static pos in this case
<alisonmaher> iank_: yes
<alisonmaher> iank_: have compat on flex for this
<alisonmaher> TabAtkins: grid also works that way
<alisonmaher> iank_: sgtm
<alisonmaher> ...align items of parent not CB
<alisonmaher> oriol: wondering if it was web compat to do in general
<fantasai> PROPOSED: in a statically positioned axis, normal self-alignment *does* take from the parent's justify/align-items property
<alisonmaher> ...probably not matching in servo
<fantasai> RESOLVED: in a statically positioned axis, normal self-alignment *does* take from the parent's justify/align-items property
Activity
css-meeting-bot commentedon Aug 21, 2025
The Houdini Task Force just discussed
[css-position-3][css-align-3] Handling center alignment for abspos boxes with auto/normal self-alignment and center item alignment in parent, and agreed to the following:RESOLVED: in a statically positioned axis, normal self-alignment *does* take from the parent's justify/align-items propertyThe full IRC log of that discussion
<alisonmaher> TabAtkins: this is the exact question we resolved on<alisonmaher> fantasai: that was just the axis
<alisonmaher> 2
<alisonmaher> TabAtkins: we have align self on abspos. The normal keyword always resolves to stretch and start not align items. Need static pos exception
<alisonmaher> ...behavior of normal keyword needs to look at parent align items or justify when calculating static pos in this case
<alisonmaher> iank_: yes
<alisonmaher> iank_: have compat on flex for this
<alisonmaher> TabAtkins: grid also works that way
<alisonmaher> iank_: sgtm
<alisonmaher> ...align items of parent not CB
<alisonmaher> oriol: wondering if it was web compat to do in general
<fantasai> PROPOSED: in a statically positioned axis, normal self-alignment *does* take from the parent's justify/align-items property
<alisonmaher> ...probably not matching in servo
<fantasai> RESOLVED: in a statically positioned axis, normal self-alignment *does* take from the parent's justify/align-items property