w3c / csswg-drafts

CSS Working Group Editor Drafts
https://drafts.csswg.org/
Other
4.51k stars 671 forks source link

[css-align] `normal` alignment doesn't really behave as `stretch` for non-replaced abspos with auto insets #11215

Open Loirooriol opened 1 week ago

Loirooriol commented 1 week ago

https://drafts.csswg.org/css-align/#justify-abspos

For replaced absolutely-positioned boxes, the normal keyword behaves as start.

For all other absolutely-positioned boxes, normal behaves as stretch.

https://drafts.csswg.org/css-align/#align-abspos

For replaced absolutely-positioned boxes, the normal keyword behaves as start.

For all other absolutely-positioned boxes, normal behaves as stretch.

However: https://drafts.csswg.org/css-position-3/#abspos-auto-size

So normal can't be behaving as stretch if they affect sizing in different ways.

Loirooriol commented 4 days ago

I think https://drafts.csswg.org/css-position-3/#abspos-auto-size needs to be removed.

And then, https://drafts.csswg.org/css-align/#justify-abspos and https://drafts.csswg.org/css-align/#align-abspos should resolve normal to either stretch or start appropriately.