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

alisonmaher has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-align-3][css-position-3] align-items and justify-items for out of flow items ==
When an out of flow item is positioned statically in a block/inline formatting context, the spec says to take `align-self` and `justify-self` into account.

However, what is expected of `align-items` and `justify-items` when set on the originating inline/block parent of the abspos? Normally, `align-items` and `justify-items` are the defaults for `align-self` and `justify-self`, but in inline layout, `align-items` and `justify-items` don't apply in general, and in block layout, `align-items` doesn't apply to its children. Should abspos elements follow suite and ignore `align-items` and `justify-items` if it would have ignored it if it weren't abspos?

I'd assume that we should ignore `align-items` and `justify-items` in the same cases for abspos elements such that their static position is as close to what it would have been if not taken out of flow. However, the spec isn't clear on what should happen in this case.

CC @bfgeek 

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/12121 using your GitHub account


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

Received on Friday, 25 April 2025 16:48:46 UTC