mask-type
Widely availableSince 202097% of users
An SVG property (also available in CSS) that determines whether an SVG <mask> element should be treated as an alpha mask or a luminance mask.
What's modern
From web-features, MDN's browser data and our snippets, checked dailyModernIn every major browser since January 2020. Widely available since July 2022.
See how modern your own CSS is.Check your CSS →
Quick facts
- Initial value
luminance- Inherited
- No
- Applies to
- mask elements
- Animation type
- discrete
Quick example
/* In an SVG definition */
mask {
/* Sets the default behavior for this mask to use transparency */
mask-type: alpha;
}Values
luminancealphamask-type browser support
BaselineWidely availableThis feature is well established and works across many devices and browser versions. It has been available across browsers since 2020.Safe to use without fallbacks.
Usage97%of people can use this3% use a browser without it.
Browsers
24+
35+
7+
79+Mobile
25+Android
35+Android
7+iOS