Limited Availability
CSS
id: margin-trim
margin-trim
The
margin-trim CSS property removes the margins of child elements when they meet the edges of the container.
Baseline Status:
This feature is currently Limited and is missing in at least one major browser engine.
Desktop Browser Engine Support
Google Chrome
—
Unsupported
Mozilla Firefox
—
Unsupported
Apple Safari
16.4
Supported
Microsoft Edge
—
Unsupported
Mobile Browser Engine Support
Chrome Android
—
Firefox Android
—
Safari iOS
16.4
Specifications and References
MDN Browser Compat Data Keys:
css.properties.margin-trim ↗
css.properties.margin-trim.block ↗
css.properties.margin-trim.block-end ↗
css.properties.margin-trim.block-start ↗
css.properties.margin-trim.inline ↗
css.properties.margin-trim.inline-end ↗
css.properties.margin-trim.inline-start ↗
css.properties.margin-trim.none ↗