← Chrome 155 reference

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: margin-trim CSS property

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 changeChrome 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 statusThe 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)
SpecCSS Box Model Module Level 4 — margin-trim (Editor’s Draft)
MDNmargin-trim
Browser compatibilityBCD 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)
Baselinewebstatus.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
ChromeStatus5197863732772864 — Margin-trim (blink component Blink>Layout)
Interactive demosChrome Platform Showcase — Margin-trim (route HEAD-checked 200, 2026-10-18)
Source: MDN margin-trim, fetched 2026-10-18; chromestatus.com/feature/5197863732772864; css-box-4

references