SVGLinearGradientElement

The SVGLinearGradientElement interface corresponds to the <linearGradient> element.

Properties

This interface also inherits properties from its parent, SVGGradientElement.

SVGLinearGradientElement.x1 Read only
An SVGAnimatedLength corresponding to the x1 attribute of the given <linearGradient> element.
SVGLinearGradientElement.y1 Read only
An SVGAnimatedLength corresponding to the y1 attribute of the given <linearGradient> element.
SVGLinearGradientElement.x2 Read only
An SVGAnimatedLength corresponding to the x2 attribute of the given <linearGradient> element.
SVGLinearGradientElement.y2 Read only
An SVGAnimatedLength corresponding to the y2 attribute of the given <linearGradient> element.

Methods

This interface doesn't implement any specific methods, but inherits methods from its parent interface, SVGGradientElement.

Specifications

Specification Status Comment
Scalable Vector Graphics (SVG) 2
The definition of 'SVGLinearGradientElement' in that specification.
Candidate Recommendation No change
Scalable Vector Graphics (SVG) 1.1 (Second Edition)
The definition of 'SVGLinearGradientElement' in that specification.
Recommendation Initial definition

Browser compatibility

Update compatibility data on GitHub
DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidEdge MobileFirefox for AndroidOpera for AndroidiOS SafariSamsung Internet
Basic supportChrome ? Edge Full support YesFirefox ? IE ? Opera ? Safari ? WebView Android No support NoChrome Android ? Edge Mobile Full support YesFirefox Android ? Opera Android ? Safari iOS ? Samsung Internet Android ?

Legend

Full support  
Full support
No support  
No support
Compatibility unknown  
Compatibility unknown

Document Tags and Contributors

Contributors to this page: fscholz, Sebastianz, abbycar, kscarfone, Sheppy, pa7, Jeremie
Last updated by: fscholz,