CSS -ms-wrap-margin Property Reference
The CSS -ms-wrap-margin property is a nonstandard property in Microsoft Extensions. Review its formal syntax, computed behavior, and practical declarations.
Updated 2026-08-12
-ms-wrap-margin overview
The CSS -ms-wrap-margin property is a nonstandard property in Microsoft Extensions. Review its formal syntax, computed behavior, and practical declarations.
The property is not inherited by default. Use an explicit global keyword when inheritance is intended.
Syntax and formal definition
| Field | Value |
|---|---|
| Formal syntax | <length> |
| Initial value | 0 |
| Applies to | exclusionElements |
| Inherited | No |
| Percentages | no |
| Computed value | asSpecified |
| Animation type | discrete |
| Media | visual |
| Specification group | Microsoft Extensions |
| Status | Nonstandard |
Practical examples
These declarations demonstrate valid ways to set -ms-wrap-margin. The initial and inherit global keywords remain available even when a property-specific value is preferable.
.reset-example {
-ms-wrap-margin: initial;
}
.inherit-example {
-ms-wrap-margin: inherit;
}
@supports (-ms-wrap-margin: initial) {
.supported {
-ms-wrap-margin: initial;
}
}