MDN’s new design is in Beta! A sneak peek:

この記事はまだボランティアによって 日本語 に翻訳されていません。ぜひ MDN に参加して翻訳を手伝ってください!
この記事を English (US) で読むこともできます。

The SVGGradient interface is a base interface used by SVGLinearGradientElement and SVGRadialGradientElement.


Name Value Description
SVG_SPREADMETHOD_UNKNOWN 0 The type is not one of predefined types. It is invalid to attempt to define a new value of this type or to attempt to switch an existing value to this type.
SVG_SPREADMETHOD_PAD 1 Corresponds to value pad.
SVG_SPREADMETHOD_REFLECT 2 Corresponds to value reflect.
SVG_SPREADMETHOD_REPEAT 3 Corresponds to value repeat.


This interface also inherits properties from its parent, SVGElement, and implements those of SVGURIReference.

SVGGradientElement.gradientUnits Read only
Returns an SVGAnimatedEnumeration corresponding to the gradientUnits attribute on the given element. Takes one of the constants defined in SVGUnitTypes.
SVGGradientElement.gradientTransform Read only
Returns an SVGAnimatedTransformList corresponding to attribute gradientTransform on the given element.
SVGGradientElement.spreadMethod Read only
Returns an SVGAnimatedEnumeration corresponding to attribute spreadMethod on the given element. One of the spread method types defined on this interface.


This interface does not provide any specific methods, but implements those of its parent, SVGElement.


Specification Status Comment
Scalable Vector Graphics (SVG) 2
The definition of 'SVGGradientElement' in that specification.
Candidate Recommendation Removed inheritance of SVGExternalResourcesRequired, SVGStylable, and SVGUnitTypes
Scalable Vector Graphics (SVG) 1.1 (Second Edition)
The definition of 'SVGGradientElement' in that specification.
Recommendation Initial definition

Browser compatibility

Feature Chrome Edge Firefox (Gecko) Internet Explorer Opera Safari (WebKit)
Basic support ? (Yes) ? ? ? ?
Feature Android Edge Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile
Basic support No support (Yes) ? ? ? ?


 このページの貢献者: Sebastianz, abbycar, fscholz, kscarfone, Sheppy, pa7, Jeremie
 最終更新者: Sebastianz,