CSS mask-border-slice Property Reference

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

CSS mask-border-slice Property Reference

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

Updated 2026-08-12

mask-border-slice overview

The CSS mask-border-slice 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-slice formal syntax
FieldValue
Formal syntax<number-percentage>{1,4} fill?
Initial value0
Applies toallElementsSVGContainerElements
InheritedNo
PercentagesreferToSizeOfMaskBorderImage
Computed valueasSpecified
Animation typediscrete
Mediavisual
Specification groupCSS Masking
StatusStandard

Practical examples

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

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

Description

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

References

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

Similar or alternative tools

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