CSS mask Property Reference

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

CSS mask Property Reference

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

Updated 2026-08-12

mask overview

The CSS mask 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 formal syntax
FieldValue
Formal syntax<mask-layer>#
Initial valuemask-image, mask-mode, mask-repeat, mask-position, mask-clip, mask-origin, mask-size, mask-composite
Applies toallElementsSVGContainerElements
InheritedNo
Percentagesmask-position
Computed valuemask-image, mask-mode, mask-repeat, mask-position, mask-clip, mask-origin, mask-size, mask-composite
Animation typemask-image, mask-mode, mask-repeat, mask-position, mask-clip, mask-origin, mask-size, mask-composite
Mediavisual
Specification groupCSS Masking
StatusStandard

Practical examples

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

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

Description

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

References

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

Similar or alternative tools

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