mask-mode
Limited availability94% of users
Specifies whether the mask should be treated as an alpha mask (using transparency) or a luminance mask (using brightness).
What's modern
From web-features, MDN's browser data and our snippets, checked dailyComingNot in Safari yet, so not every major browser supports it.
See how modern your own CSS is.Check your CSS →
Quick facts
- Initial value
match-source- Inherited
- No
- Applies to
- all elements and SVG container elements
- Animation type
- discrete
Quick example
.luminance-mask {
/* Uses the brightness of the image to determine visibility */
mask-mode: luminance;
}mask-mode browser support
BaselineLimited availabilityThis feature is not Baseline because it does not work in some of the most widely-used browsers.Not ready for production without a fallback.
Usage94%of people can use this6% use a browser without it.
Browsers
120+
53+
120+Mobile
120+Android
53+Android