SVGGradientElement

SVG gradient interface

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

Interface overview

Also implement SVGElement, SVGURIReference, SVGExternalResourcesRequired, SVGStylable, SVGUnitTypes
Methods None
Properties
Constants
  • SVG_SPREADMETHOD_UNKNOWN = 0
  • SVG_SPREADMETHOD_PAD = 1
  • SVG_SPREADMETHOD_REFLECT = 2
  • SVG_SPREADMETHOD_REPEAT = 3
Normative document SVG 1.1 (2nd Edition)

Constants

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.

Properties

Name Type Description
gradientUnits SVGAnimatedTransformList Corresponds to attribute gradientUnits on the given element. Takes one of the constants defined in SVGUnitTypes.
gradientTransform SVGAnimatedTransformList Corresponds to attribute gradientTransform on the given element.
spreadMethod SVGAnimatedTransformList Corresponds to attribute spreadMethod on the given element. One of the Spread Method Types defined on this interface.

Methods

The SVGGradientElement interface do not provide any specific methods.

Browser compatibility

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari (WebKit)
Basic support ? ? ? ? ?
Feature Android Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile
Basic support Not supported ? ? ? ?

 

Document Tags and Contributors

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