mask property CSS Reference



Definition and Usage

  • Initial none
  • Applies to all elements
  • Inherited no
  • Media visual
  • Computed Value
  • Animatable yes

Syntax

mask: <uri> | none | inherit

Values

If the value is a URI value, the element pointed to by the URI is used as an SVG mask.


Examples

.target { mask: url(#c1); }
.anothertarget { mask: url(resources.svg#c1); }

Compatibility

Desktop browsers

FeatureChromeFirefox (Gecko)Internet ExplorerOperaSafari (WebKit)
Basic support (for SVG)(Yes) (Yes)NA(Yes)(Yes)
Applies to HTML ElementsNot supported3.5 (1.9.1)Not supportedNot supportedNot supported

Mobile browsers

FeatureAndroidFirefox Mobile (Gecko)IE PhoneOpera MobileSafari Mobile
Basic supportNANANANANA

Relative articles