web api interface
SVGGradientElement
The SVGGradient interface is a base interface used by SVGLinearGradientElement and SVGRadialGradientElement.
Instance properties
This interface also inherits properties from its parent, SVGElement.
hrefRead only- : An
SVGAnimatedStringcorresponding to thehreforxlink:hrefattribute of the given element.
- : An
gradientUnitsRead only- : An
SVGAnimatedEnumerationcorresponding to thegradientUnitsattribute on the given element. This property takes one of the constants defined inSVGUnitTypes.
- : An
gradientTransformRead only- : An
SVGAnimatedTransformListcorresponding to thegradientTransformattribute on the given element.
- : An
spreadMethodRead only- : An
SVGAnimatedEnumerationcorresponding to thespreadMethodattribute on the given element. One of the spread method types defined on this interface.
- : An
Instance methods
This interface does not provide any specific methods, but implements those of its parent, SVGElement.
Static properties
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.
- : Corresponds to value
SVG_SPREADMETHOD_REFLECT(2)- : Corresponds to value
reflect.
- : Corresponds to value
SVG_SPREADMETHOD_REPEAT(3)- : Corresponds to value
repeat.
- : Corresponds to value
Specifications
SpecificationsStandards references are available on the canonical MDN page.
Browser compatibility
Browser compatibilityCompatibility data is available on the canonical MDN page.