SVGPatternElement
The SVGPatternElement interface corresponds to the <pattern> element.
Instance properties
This interface also inherits properties from its parent, SVGElement.
SVGPatternElement.hrefRead only-
An
SVGAnimatedStringcorresponding to thehreforxlink:hrefDeprecated attribute of the given<pattern>element. SVGPatternElement.patternUnitsRead only-
An
SVGAnimatedEnumerationcorresponding to thepatternUnitsattribute of the given<pattern>element. Takes one of the constants defined inSVGUnitTypes. SVGPatternElement.patternContentUnitsRead only-
An
SVGAnimatedEnumerationcorresponding to thepatternContentUnitsattribute of the given<pattern>element. Takes one of the constants defined inSVGUnitTypes. SVGPatternElement.patternTransformRead only-
An
SVGAnimatedTransformListcorresponding to thepatternTransformattribute of the given<pattern>element. SVGPatternElement.xRead only-
An
SVGAnimatedEnumerationcorresponding to thexattribute of the given<pattern>element. SVGPatternElement.yRead only-
An
SVGAnimatedEnumerationcorresponding to theyattribute of the given<pattern>element. SVGPatternElement.widthRead only-
An
SVGAnimatedEnumerationcorresponding to thewidthattribute of the given<pattern>element. SVGPatternElement.heightRead only-
An
SVGAnimatedEnumerationcorresponding to theheightattribute of the given<pattern>element.
Instance methods
This interface doesn't implement any specific methods, but inherits methods from its parent interface, SVGElement.
Specifications
| Specification |
|---|
| Scalable Vector Graphics (SVG) 2 # InterfaceSVGPatternElement |
Browser compatibility
| desktop | mobile | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
SVGPatternElement | |||||||||||
height | |||||||||||
href | |||||||||||
patternContentUnits | |||||||||||
patternTransform | |||||||||||
patternUnits | |||||||||||
preserveAspectRatio | |||||||||||
viewBox | |||||||||||
width | |||||||||||
x | |||||||||||
y | |||||||||||