stop element | SVGStopElement object
Defines the ramp of colors to use in gradients.
![]() ![]() |
DOM Information
Inheritance Hierarchy
Members
The SVGStopElement object has these types of members:
Events
The SVGStopElement object has these events.
| Event | Description |
|---|---|
| onload |
Occurs when the browser has fully parsed the element and all of its descendants. |
Properties
The SVGStopElement object has these properties.
| Property | Description |
|---|---|
|
Gets the names of the classes that are assigned to this object. | |
|
Determines if an element can acquire keyboard focus (that is, receive keyboard events) and be a target for field-to-field navigation actions (such as when a user presses the Tab key). | |
|
Gets or sets a value that indicates where the gradient stop is placed within the gradient. | |
|
Gets the nearest ancestor svg element. | |
|
Sets or retrieves a value that indicates what color to use at the current gradient stop. | |
|
Sets or retrieves a value that defines the opacity of the current gradient stop. | |
|
Gets a style object. | |
|
Gets the element that established the current viewport. | |
|
Gets or sets the |
Standards information
- Scalable Vector Graphics: Gradients and Patterns, Section 13.4.4
Remarks
You must define two stop elements to create a gradient effect. If no stop elements, painting occurs as if you specify none as the paint style. If you define one stop element, the paint occurs by using a solid-color fill with the color that is defined for that gradient stop element.
See also

