CSS mask-size Property Reference

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

CSS mask-size Property Reference

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

Updated 2026-08-12

mask-size overview

The CSS mask-size 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-size formal syntax
FieldValue
Formal syntax<bg-size>#
Initial valueauto
Applies toallElementsSVGContainerElements
InheritedNo
Percentagesno
Computed valueasSpecifiedRelativeToAbsoluteLengths
Animation typerepeatableList
Mediavisual
Specification groupCSS Masking
StatusStandard

Practical examples

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

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

Description

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

References

  1. MDN: mask-size
  2. MDN: CSS Properties Reference

Similar or alternative tools

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