mask-border-width

Sets the thickness of the mask border. If this is different from the element's actual border width, the mask border will scale to fit.

Quick example

.masked-element {
  /* Sets the mask border to be 20px wide */
  mask-border-width: 20px;
}

Quick facts

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

Values

auto

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