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.
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.viewBoxRead only-
An
SVGAnimatedRectcorresponding to theviewBoxattribute of the given<pattern>element. SVGPatternElement.preserveAspectRatioRead only-
An
SVGAnimatedPreserveAspectRatiocorresponding to thepreserveAspectRatioattribute 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
Loading…