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.
It is documented as part of the CSS Masking specification.
Syntax
/* Usage Example */
.masked-element {
/* Sets the mask border to be 20px wide */
mask-border-width: 20px;
}
/* Syntax */
mask-border-width: auto;
/* Global values */
mask-border-width: inherit;
mask-border-width: initial;
mask-border-width: revert;
mask-border-width: revert-layer;
mask-border-width: unset;
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.
1+
17.2+
79+