Skip to content
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

[css-sizing-4] Define stretch sizing properly, rather than (incorrectly) indirecting thru stretch alignment. #9902

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

tabatkins
Copy link
Member

The old spec said "do what stretch self-alignment does", with some caveats for handling layout modes where that doesn't apply. But that gives bad behavior - it means that auto margins win over stretch sizing (since they win over alignment), when the opposite should occur.

@tabatkins
Copy link
Member Author

@bfgeek Does this look reasonable?

but applying the resulting size to its margin box
instead of the box indicated by 'box-sizing'.
[=Stretch-fit sizing=] indicates the size necessary to make the box’s [=outer size=]
fill the [=containing block=].
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What if the box is a block-level that establishes an independent formatting context, and there are floats to avoid?
justify-self aligns within the float-shrunken containing block.

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

Successfully merging this pull request may close these issues.

None yet

2 participants