mask-border-source
Limited availability94% of users
Sets the image that will be used to create the mask border. This image is sliced and applied to the border area of an element.
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
none- Inherited
- No
- Applies to
- all elements and SVG container elements
- Animation type
- discrete
Quick example
.masked-element {
/* Uses an external image as the source for the mask border */
mask-border-source: url('border-mask.png');
}Values
nonemask-border-source 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