SVGPatternElement
The SVGPatternElement interface corresponds to the <pattern> element.
Instance properties
This interface also inherits properties from its parent, SVGElement and implements the ones from SVGFitToViewBox.
SVGPatternElement.hrefRead only-
An
SVGAnimatedStringcorresponding to thehreforxlink:hrefattribute 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 and implements the ones from SVGFitToViewBox.
Specifications
| Specification |
|---|
| Scalable Vector Graphics (SVG) 2 # InterfaceSVGPatternElement |
Browser compatibility
BCD tables only load in the browser