SVGPatternElement
Baseline Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since July 2015.
TheSVGPatternElement interface corresponds to the<pattern> element.
In this article
Instance properties
This interface also inherits properties from its parent,SVGElement.
SVGPatternElement.hrefRead onlyAn
SVGAnimatedStringcorresponding to thehreforxlink:hrefDeprecated attribute of the given<pattern>element.SVGPatternElement.patternUnitsRead onlyAn
SVGAnimatedEnumerationcorresponding to thepatternUnitsattribute of the given<pattern>element. Takes one of the constants defined inSVGUnitTypes.SVGPatternElement.patternContentUnitsRead onlyAn
SVGAnimatedEnumerationcorresponding to thepatternContentUnitsattribute of the given<pattern>element. Takes one of the constants defined inSVGUnitTypes.SVGPatternElement.patternTransformRead onlyAn
SVGAnimatedTransformListcorresponding to thepatternTransformattribute of the given<pattern>element.SVGPatternElement.viewBoxRead onlyAn
SVGAnimatedRectcorresponding to theviewBoxattribute of the given<pattern>element.SVGPatternElement.preserveAspectRatioRead onlyAn
SVGAnimatedPreserveAspectRatiocorresponding to thepreserveAspectRatioattribute of the given<pattern>element.SVGPatternElement.xRead onlyAn
SVGAnimatedEnumerationcorresponding to thexattribute of the given<pattern>element.SVGPatternElement.yRead onlyAn
SVGAnimatedEnumerationcorresponding to theyattribute of the given<pattern>element.SVGPatternElement.widthRead onlyAn
SVGAnimatedEnumerationcorresponding to thewidthattribute of the given<pattern>element.SVGPatternElement.heightRead onlyAn
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> |