mask-border-outset

Defines how much the mask border area extends beyond the element's border box, effectively pushing the mask outwards.

Quick example

.masked-element {
  /* Extends the mask 10px beyond the element edges */
  mask-border-outset: 10px;
}

Quick facts

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

mask-border-outset 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