stop-color
Baseline
Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since Juli 2015.
Das Attribut stop-color gibt an, welche Farbe an einem Gradient-Stopp verwendet werden soll.
Hinweis:
In Bezug auf Gradienten behandelt SVG das Schlüsselwort transparent anders als CSS. SVG berechnet Gradienten nicht in vormultipliziertem Raum, daher bedeutet transparent wirklich durchsichtiges Schwarz. Das Festlegen einer stop-color mit dem Wert transparent entspricht dem Festlegen einer stop-color mit dem Wert black und einer stop-opacity mit dem Wert 0.
Hinweis:
Als Präsentationsattribut hat stop-color auch ein entsprechendes CSS-Property: stop-color. Wenn beide angegeben sind, hat das CSS-Property Vorrang.
Sie können dieses Attribut mit den folgenden SVG-Elementen verwenden:
Anmerkungen zur Verwendung
| Wert |
<color>
|
|---|---|
| Standardwert | black |
| Animierbar | Ja |
<color>-
Dieser Wert gibt einen Farbwert an.
Spezifikationen
| Specification |
|---|
| Scalable Vector Graphics (SVG) 2> # StopColorProperty> |
Browser-Kompatibilität
Loading…
Siehe auch
- CSS-Eigenschaft
stop-color stop-opacity