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.

.masked-element {
  /* Sets the mask border to be 20px wide */
  mask-border-width: 20px;
}
Initial value
auto
Inherited
No
Applies to
allElementsSVGContainerElements
Animation type
discrete

Values

auto
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