Movatterモバイル変換


[0]ホーム

URL:


  1. Web
  2. Web APIs
  3. SVGGradientElement

SVGGradientElement

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since ⁨July 2015⁩.

TheSVGGradient interface is a base interface used bySVGLinearGradientElement andSVGRadialGradientElement.

EventTarget Node Element SVGElement SVGGradientElement

Instance properties

This interface also inherits properties from its parent,SVGElement.

SVGGradientElement.hrefRead only

AnSVGAnimatedString corresponding to thehref orxlink:href attribute of the given element.

SVGGradientElement.gradientUnitsRead only

AnSVGAnimatedEnumeration corresponding to thegradientUnits attribute on the given element. This property takes one of the constants defined inSVGUnitTypes.

SVGGradientElement.gradientTransformRead only

AnSVGAnimatedTransformList corresponding to thegradientTransform attribute on the given element.

SVGGradientElement.spreadMethodRead only

AnSVGAnimatedEnumeration corresponding to thespreadMethod attribute on the given element. One of the spread method types defined on this interface.

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 valuepad.

SVG_SPREADMETHOD_REFLECT (2)

Corresponds to valuereflect.

SVG_SPREADMETHOD_REPEAT (3)

Corresponds to valuerepeat.

Specifications

Specification
Scalable Vector Graphics (SVG) 2
# InterfaceSVGGradientElement

Browser compatibility

Help improve MDN

Learn how to contribute

This page was last modified on byMDN contributors.


[8]ページ先頭

©2009-2025 Movatter.jp