mask-border-slice

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.

Quick example

.masked-element {
  /* Slices the mask image 30px from each edge */
  mask-border-slice: 30;
}

Quick facts

Initial value
0
Inherited
No
Applies to
all elements and SVG container elements
Animation type
discrete

Values

fill

mask-border-slice Browser Support

Limited availability92% global usage

This feature is not Baseline because it does not work in some of the most widely-used browsers.

Not ready for production without a fallback.

17.2+
ESC