Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
alisonmaher opened this issue Apr 25, 2025 · 0 comments

Comments

@alisonmaher
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant