patternContentUnits attribute | patternContentUnits property
Gets or sets the patternContentUnits property on the given pattern element, defining the coordinate system for the contents of the pattern element.
![]() ![]() |
Syntax
| HTML |
|---|
<element patternContentUnits="p" ... > |
| JavaScript |
|---|
p = object.patternContentUnits |
Property values
Type: Object
An SVGAnimatedEnumeration object that defines the user coordinate system for the contents of the pattern element. This parameter can contain one of the following values:
Standards information
- Scalable Vector Graphics: Gradients and Patterns, Section 13.4.5
Remarks
The patternContentUnits property uses one of the constants that are defined in the ISVGUnitTypes enumeration.
Note This property has no effect if you specify the viewBox attribute.
You can animate this property.
See also
Show:

