Skip to content

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

@Loirooriol Loirooriol Feb 27, 2024

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.

3 participants