mask-border-slice
Limited availability94% of users
Specifies how to 'slice' the mask border image into nine regions (four corners, four edges and a center). This allows the edges to scale while keeping the corners fixed.
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
0- Inherited
- No
- Applies to
- all elements and SVG container elements
- Animation type
- discrete
Quick example
.masked-element {
/* Slices the mask image 30px from each edge */
mask-border-slice: 30;
}Values
fillmask-border-slice 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