mask property
Sets or retrieves a value that indicates a Scalable Vector Graphics (SVG) mask.
![]() ![]() |
Syntax
mask:
<funciri>
| none | inherit
Property values
- funciri
-
An Internationalized Resource Identifier (IRI) reference to another graphical object, which is used as the mask.
none-
Default. A value that indicates there is no mask.
inherit-
A value that indicates that the property takes the same computed value as the property for the element's parent.
CSS information
| Applies To | container elements and graphics elements |
|---|---|
| Media | visual |
| Inherited | no |
| Initial Value | none |
Standards information
Remarks
As of Microsoft Edge, this presentation attribute is animatable with CSS Animations and CSS Transitions.
The mask is used to reference a mask element in SVG.
See also
- a
- CSSStyleDeclaration
- currentStyle
- style
- SVGCircleElement
- SVGDefsElement
- SVGEllipseElement
- SVGGElement
- SVGImageElement
- SVGLineElement
- SVGMarkerElement
- SVGPathElement
- SVGPatternElement
- SVGPolygonElement
- SVGPolylineElement
- SVGRectElement
- SVGSVGElement
- SVGSwitchElement
- SVGSymbolElement
- SVGTextElement
- SVGUseElement
- mask
Show:

