Re: [csswg-drafts] [css-box-4] For a multi-line flexbox when is trimming performed? (#11398)

Then again, it does seem useful to trim trailing end margins for the last item on a line. And it would certainly be weird to trim start margins on each flex line, but not the end margins.

Would another option be to remove flex support from `margin-trim` altogether, along with grid? Distance between items and lines can be controlled with container `gap` instead of item `margin` + container `margin-trim`.

Motivation for margin-trim, quoting the spec:

> Oftentimes, margins are desired between siblings, but not at the start/end of the container where spacing can be controlled with padding.

In flex and grid there's `gap` between items (but not between an item and its container). The gap is the same between every item, of course, though.

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


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

Received on Monday, 16 March 2026 13:14:42 UTC