CSS mask-type Property Reference
The CSS mask-type property is a standard property in CSS Masking. Review its formal syntax, computed behavior, and practical declarations.
Updated 2026-08-12
mask-type overview
The CSS mask-type 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 | luminance | alpha |
| Initial value | luminance |
| Applies to | maskElements |
| 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-type. The initial and inherit global keywords remain available even when a property-specific value is preferable.
CSS
.reset-example {
mask-type: initial;
}
.inherit-example {
mask-type: inherit;
}
@supports (mask-type: initial) {
.supported {
mask-type: initial;
}
}