Re: [csswg-drafts] [css-align-3][css-position-3] align-items and justify-items for out of flow items (#12121)

The Houdini Task Force just discussed `[css-align-3][css-position-3] align-items and justify-items for out of flow items`, and agreed to the following:

* `RESOLVED: static pos of abspos items ignores place item properties in same context where an actual static pos item ignores them`
* `RESOLVED: in a static-positioned axis, the alignment property that applies is determined by the writing mode of the parent`

<details><summary>The full IRC log of that discussion</summary>
&lt;alisonmaher> TabAtkins: the place items prop sets defaults for align self justify self for children but not abspos<br>
&lt;alisonmaher> ...any context it should affect abspos? I say no<br>
&lt;alisonmaher> iank_: that won't be web compat<br>
&lt;alisonmaher> ...everyone suppors align items affecting abs pos<br>
&lt;alisonmaher> ...this will break the internet if we change<br>
&lt;alisonmaher> ...wouldn't be surpised if it would break in grid<br>
&lt;alisonmaher> TabAtkins: are there cases when we should ignore when computing static pos if normal static pos would ignore them<br>
&lt;alisonmaher> ..like align items on block container ?? should static pos of abspos ignore as well<br>
&lt;TabAtkins> s/??/is ignored;/<br>
&lt;alisonmaher> fantasai: align items should affect if static pos and if it would affect if not abspos<br>
&lt;alisonmaher> iank_: fine with that<br>
&lt;alisonmaher> PROPOSED: static pos of abspos items ignores place item properties in same context where an actual static pos item ignores them<br>
&lt;fantasai> PROPOSED: place-items affects abspos children iff they are statically positioned and it would have affected the item if it were not abspos<br>
&lt;alisonmaher> RESOLVED: static pos of abspos items ignores place item properties in same context where an actual static pos item ignores them<br>
&lt;alisonmaher> fantasai: block context with justify items. Parent is horizontal wm, containing block of abspos is vertical, align items prop on parent affects in vert axis, but align self on abspos would normally affect horiz axis because cont if vertical<br>
&lt;alisonmaher> ...in this case it is static pos. Does align self affect horiz or vert direction<br>
&lt;TabAtkins> summary: the abspos's "normal CB" and "abspos CB" have different writing modes.<br>
&lt;alisonmaher> ...or does parent align items affect which direction<br>
&lt;alisonmaher> iank_: Alison filed another issue on this<br>
&lt;alisonmaher> ...maybe was related to flexbox version of this<br>
&lt;alisonmaher> ...I can come up with an answer. Just keep static pos as local as possible. Justify items/self affect the static pos in that axis<br>
&lt;alisonmaher> ...in the parent axis<br>
&lt;oriol> q+<br>
&lt;alisonmaher> fantasai: happy with that<br>
&lt;alisonmaher> TabAtkins: dodn't like it but ok<br>
&lt;alisonmaher> oriol: first find static pos, treat it as if not abspos, against parent. Then when finding final pos treat it as an abpos then base it off of the CBs direction<br>
&lt;alisonmaher> iank_: justify self may resolve in 2 axes<br>
&lt;TabAtkins> This is nonsense, but I'm fine with it because static position is stupid and doesn't matter.<br>
&lt;alisonmaher> ...may be static pos in one axis, and not in the other. So justify self would resolve in both<br>
&lt;fantasai> PROPOSED: in a static-positioned axis, the alignment property that applies is determined by the writing mode of the parent<br>
&lt;alisonmaher> iank_: this happesn with align items in flex<br>
&lt;fantasai> RESOLVED: in a static-positioned axis, the alignment property that applies is determined by the writing mode of the parent<br>
</details>


-- 
GitHub Notification of comment by css-meeting-bot
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/12121#issuecomment-3210736683 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Thursday, 21 August 2025 13:59:39 UTC