Re: [csswg-drafts] [css-box-4] margin-trim auto-margins needs more clarification wrt. fallback alignment. (#11397)

Looking at this, my intuition lets me agree with @mirisuzanne. If we agree that `auto` margins are trimmed ‒ and I think that's reasonable, as it makes the behavior consistent with other values for `margin` ‒ the margins get trimmed on both sides of the block axis, so they should be end-aligned.

Extending the question: What if we have `margin-trim: block-start` instead? In _that_ case, I'd say they should be at the start, as only the end margin gets trimmed, so the `auto` value pushes them to the block start.

Sebastian

-- 
GitHub Notification of comment by SebastianZ
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/11397#issuecomment-3672162546 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Thursday, 18 December 2025 20:48:45 UTC