CSS mask-origin Property Reference
The CSS mask-origin property is a standard property in CSS Masking. Review its formal syntax, computed behavior, and practical declarations.
Updated 2026-08-12
mask-origin overview
The CSS mask-origin property is a standard property in CSS Masking. 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 | <coord-box># |
| Initial value | border-box |
| Applies to | allElementsSVGContainerElements |
| Inherited | No |
| Percentages | no |
| Computed value | asSpecified |
| Animation type | discrete |
| Media | visual |
| Specification group | CSS Masking |
| Status | Standard |
Practical examples
These declarations demonstrate valid ways to set mask-origin. The initial and inherit global keywords remain available even when a property-specific value is preferable.
CSS
.reset-example {
mask-origin: initial;
}
.inherit-example {
mask-origin: inherit;
}
@supports (mask-origin: initial) {
.supported {
mask-origin: initial;
}
}