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

Widely available Since 2015 92% global usage

This feature is well established and works across many devices and browser versions. It has been available across browsers since 2015.

Safe to use without fallbacks.

1+
17.2+
79+
ESC