v155 · css · covered on mdn
Margin-trim
The margin-trim CSS property lets a container discard the margins of its first and/or last child (block axis, inline axis, or both), so spacing inside a box is controlled by the container instead of leaking child margins into its padding. It generalizes the old quirks-mode margin collapsing hacks into one explicit, expressive property, and in Chrome 155 it is supported on regular block containers and multicol containers.
this feature is documented on MDN
MDN’s reference covers the property in full — value syntax, formal definition, examples, specifications, and browser compatibility (verified substantive, 2026-10-18; Safari has shipped it since 16.4, so the MDN page long predates Chrome’s ship). gendn doesn’t duplicate that here.
Why gendn doesn't duplicate MDN: this site exists for Chrome features that have no MDN reference yet. When MDN covers a feature completely, the honest page is a pointer to the canonical reference plus the shipping metadata MDN doesn't track — duplicated prose would only drift out of sync.
quick reference
| The change | Chrome 155 ships margin-trim: none | block | block-start | block-end | inline | inline-start | inline-end (multiple keywords allowed) on block and multicol containers — the container trims the specified adjacent child margins (grammar per the css-box-4 draft) |
|---|---|
| Chrome status | The milestone=155 listing files it under “Enabled by default” (fetched 2026-10-18; the listing is authoritative for filing), and webstatus.dev’s BCD-derived data records Chrome 155 (2026-10-06) |
| Spec | CSS Box Model Module Level 4 — margin-trim (Editor’s Draft) |
| MDN | margin-trim |
| Browser compatibility | BCD css/properties/margin-trim.json (verified 2026-10-18): Chrome 155. Edge mirrors Chrome. Safari 16.4 (shipped first, 2023). Firefox not yet (bug 1506241) |
| Baseline | webstatus.dev margin-trim (queried 2026-10-18): Limited availability — Firefox has not shipped, so it is not Baseline yet. Disclosed: the webstatus browser_implementations block still listed only Safari 16.4 at query time, lagging the BCD Chrome 155 record above |
| ChromeStatus | 5197863732772864 — Margin-trim (blink component Blink>Layout) |
| Interactive demos | Chrome Platform Showcase — Margin-trim (route HEAD-checked 200, 2026-10-18) |