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-box-4] margin-trim auto-margins needs more clarification wrt. fallback alignment. #11397

Open
bfgeek opened this issue Dec 19, 2024 · 0 comments

Comments

@bfgeek
Copy link

bfgeek commented Dec 19, 2024

Consider:

<!DOCTYPE html>
<div style="display: flex; margin-trim: block; align-items: end; width: 100px; border: solid 2px; height: 100px;">
  <div style="background: lime; margin: auto;">hi</div>
  <div style="background: lime; margin: auto;">hi</div>
</div>

Presuming that auto margins are trimmed, should the alignment of the items be the start or the end?

https://drafts.csswg.org/css-box-4/#margin-trim

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

No branches or pull requests

1 participant