{{APIRef("SVG")}}
SVG linearGradient interface
The SVGLinearGradientElement
interface corresponds to the {{ SVGElement("linearGradient") }} element.
Interface overview
Also implement | {{ domxref("SVGGradientElement") }} |
---|---|
Methods | None |
Properties |
|
Normative document | SVG 1.1 (2nd Edition) |
Properties
Name | Type | Description |
---|---|---|
x1 |
{{ domxref("SVGAnimatedLength") }} | Corresponds to attribute {{ SVGAttr("x1") }} on the given {{ SVGElement("linearGradient") }} element. |
y1 |
{{ domxref("SVGAnimatedLength") }} | Corresponds to attribute {{ SVGAttr("y1") }} on the given {{ SVGElement("linearGradient") }} element. |
x2 |
{{ domxref("SVGAnimatedLength") }} | Corresponds to attribute {{ SVGAttr("x2") }} on the given {{ SVGElement("linearGradient") }} element. |
y2 |
{{ domxref("SVGAnimatedLength") }} | Corresponds to attribute {{ SVGAttr("y2") }} on the given {{ SVGElement("linearGradient") }} element. |
Methods
The SVGLinearGradientElement
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() }} |