mask-composite
Widely availableSince 202394% of users
Defines how multiple mask layers should be combined together (e.g., should they be added, subtracted or intersected).
What's modern
From web-features, MDN's browser data and our snippets, checked dailyModernIn every major browser since December 2023. Widely available since June 2026.
See how modern your own CSS is.Check your CSS →
Quick facts
- Initial value
add- Inherited
- No
- Applies to
- all elements and SVG container elements
- Animation type
- discrete
Quick example
.layered-mask {
mask-image: url(mask1.png), url(mask2.png);
/* Subtracts the second mask from the first */
mask-composite: subtract;
}mask-composite browser support
BaselineWidely availableThis feature is well established and works across many devices and browser versions. It has been available across browsers since 2023.Safe to use without fallbacks.
Usage94%of people can use this6% use a browser without it.
Browsers
120+
53+
15.4+
120+Mobile
120+Android
53+Android
15.4+iOS