CSS mask-border-width Property Reference

The CSS mask-border-width property is a standard property in CSS Masking. Review its formal syntax, computed behavior, and practical declarations.

CSS mask-border-width Property Reference

The CSS mask-border-width property is a standard property in CSS Masking. Review its formal syntax, computed behavior, and practical declarations.

Updated 2026-08-12

mask-border-width overview

The CSS mask-border-width property is a standard property in CSS Masking. Review its formal syntax, computed behavior, and practical declarations.

The property is not inherited by default. Use an explicit global keyword when inheritance is intended.

Syntax and formal definition

mask-border-width formal syntax
FieldValue
Formal syntax[ <length-percentage> | <number> | auto ]{1,4}
Initial valueauto
Applies toallElementsSVGContainerElements
InheritedNo
PercentagesrelativeToMaskBorderImageArea
Computed valueasSpecifiedRelativeToAbsoluteLengths
Animation typediscrete
Mediavisual
Specification groupCSS Masking
StatusStandard

Practical examples

These declarations demonstrate valid ways to set mask-border-width. The initial and inherit global keywords remain available even when a property-specific value is preferable.

mask-border-width live example
CSS .reset-example { mask-border-width: initial; } .inherit-example { mask-border-width: inherit; } @supports (mask-border-width: initial) { .supported { mask-border-width: initial; } }

Description

The CSS mask-border-width property is a standard property in CSS Masking. Review its formal syntax, computed behavior, and practical declarations.

References

  1. MDN: mask-border-width
  2. MDN: CSS Properties Reference

Similar or alternative tools

Don't forget to set a bookmark for tool.io!
Privacy | Imprint | Cookies