SVGLinearGradientElement
The SVGLinearGradientElement interface corresponds to the <linearGradient> element.
Instance properties
This interface also inherits properties from its parent, SVGGradientElement.
SVGLinearGradientElement.x1Read only-
An
SVGAnimatedLengthcorresponding to thex1attribute of the given<linearGradient>element. SVGLinearGradientElement.y1Read only-
An
SVGAnimatedLengthcorresponding to they1attribute of the given<linearGradient>element. SVGLinearGradientElement.x2Read only-
An
SVGAnimatedLengthcorresponding to thex2attribute of the given<linearGradient>element. SVGLinearGradientElement.y2Read only-
An
SVGAnimatedLengthcorresponding to they2attribute of the given<linearGradient>element.
Instance methods
This interface doesn't implement any specific methods, but inherits methods from its parent interface, SVGGradientElement.
Specifications
| Specification |
|---|
| Scalable Vector Graphics (SVG) 2 # InterfaceSVGLinearGradientElement |
Browser compatibility
BCD tables only load in the browser