maskUnits attribute | maskUnits property
Gets the maskUnits attribute of the mask element.
![]() ![]() |
Syntax
| HTML |
|---|
<element maskUnits="p" ... > |
| JavaScript |
|---|
p = object.maskUnits |
Property values
Type: Object
Defines the coordinate system for the x, y, width, and height attributes as one of the following constants that are defined in svgUnitTypes.
Standards information
- Scalable Vector Graphics: Clipping, Masking and Compositing, Section 14.6.2
Remarks
If you do not specify the maskUnits property, the effect is the same as if you specify a value of objectBoundingBox.
For more information, see the Scalable Vector Graphics (SVG) 1.0 Specification Object bounding box units section.
See also
Show:

