{{APIRef("SVG")}}
SVG pattern interface
The SVGPatternElement
interface corresponds to the {{ SVGElement("pattern") }} element.
Interface overview
Also implement | {{ domxref("SVGElement") }}, {{ domxref("SVGURIReference") }}, {{ domxref("SVGTests") }}, {{ domxref("SVGLangSpace") }}, {{ domxref("SVGExternalResourcesRequired") }}, {{ domxref("SVGStylable") }}, {{ domxref("SVGFitToViewBox") }}, {{ domxref("SVGUnitTypes") }} |
---|---|
Methods | None |
Properties |
|
Normative document | SVG 1.1 (2nd Edition) |
Properties
Name | Type | Description |
---|---|---|
patternUnits |
{{ domxref("SVGAnimatedEnumeration") }} | Corresponds to attribute {{ SVGAttr("patternUnits") }} on the given {{ SVGElement("pattern") }} element. Takes one of the constants defined in {{ domxref("SVGUnitTypes") }}. |
patternContentUnits |
{{ domxref("SVGAnimatedEnumeration") }} | Corresponds to attribute {{ SVGAttr("patternContentUnits") }} on the given {{ SVGElement("pattern") }} element. Takes one of the constants defined in {{ domxref("SVGUnitTypes") }}. |
patternTransform |
{{ domxref("SVGAnimatedTransformList") }} | Corresponds to attribute {{ SVGAttr("patternTransform") }} on the given {{ SVGElement("pattern") }} element. |
x |
{{ domxref("SVGAnimatedLength") }} | Corresponds to attribute {{ SVGAttr("x") }} on the given {{ SVGElement("pattern") }} element. |
y |
{{ domxref("SVGAnimatedLength") }} | Corresponds to attribute {{ SVGAttr("y") }} on the given {{ SVGElement("pattern") }} element. |
width |
{{ domxref("SVGAnimatedLength") }} | Corresponds to attribute {{ SVGAttr("width") }} on the given {{ SVGElement("pattern") }} element. |
height |
{{ domxref("SVGAnimatedLength") }} | Corresponds to attribute {{ SVGAttr("height") }} on the given {{ SVGElement("pattern") }} element. |
Methods
The SVGPatternElement
interface do not provide any specific methods.
Browser compatibility
{{ CompatibilityTable() }}
Feature | Chrome | Firefox (Gecko) | Internet Explorer | Opera | Safari (WebKit) |
---|---|---|---|---|---|
Basic support | {{ CompatUnknown() }} | {{ CompatUnknown() }} | {{ CompatUnknown() }} | {{ CompatUnknown() }} | {{ CompatUnknown() }} |
Feature | Android | Firefox Mobile (Gecko) | IE Mobile | Opera Mobile | Safari Mobile |
---|---|---|---|---|---|
Basic support | {{ CompatNo() }} | {{ CompatUnknown() }} | {{ CompatUnknown() }} | {{ CompatUnknown() }} | {{ CompatUnknown() }} |