mask-border-repeat
Limited availability94% of users
Determines how the edges and corners of the mask border image are repeated or stretched to fill the mask area.
What's modern
From web-features, MDN's browser data and our snippets, checked dailyComingNot in Chrome, Edge or Firefox yet, so not every major browser supports it.
See how modern your own CSS is.Check your CSS →
Quick facts
- Initial value
stretch- Inherited
- No
- Applies to
- all elements and SVG container elements
- Animation type
- discrete
Quick example
.masked-element {
mask-border-source: url('mask-edge.png');
/* Repeats the mask image edges to fill the border */
mask-border-repeat: repeat;
}Values
stretchrepeatroundspacemask-border-repeat 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
17.2+Mobile
17.2+iOS