stop-opacity
Baseline Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since January 2020.
Das stop-opacity
-Attribut definiert die Deckkraft eines bestimmten Farbverlaufsstopps.
Der für die Verlaufskalkulation genutzte Deckkraftwert ist das Produkt aus dem Wert von stop-opacity
und der Deckkraft des Wertes des Attributs stop-color
. Für stop-color
-Werte, die keine expliziten Deckkraftinformationen enthalten, wird die Deckkraft als 1
behandelt.
Hinweis:
Als Präsentationsattribut hat stop-opacity
auch ein entsprechendes CSS-Eigenschafts-Pendant: stop-opacity
. Wenn beide angegeben sind, hat die CSS-Eigenschaft Vorrang.
Sie können dieses Attribut mit den folgenden SVG-Elementen verwenden:
Hinweise zur Verwendung
Wert |
<opacity-value>
|
---|---|
Standardwert | 1 |
Animierbar | Ja |
<opacity-value>
-
Dieser Wert ist entweder eine
<number>
zwischen0
und1
oder ein<percentage>
-Wert, der die Deckkraft des Farbverlaufsstopps angibt.
Spezifikationen
Specification |
---|
Scalable Vector Graphics (SVG) 2 # StopOpacityProperty |
Browser-Kompatibilität
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
stop-opacity |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
- Has more compatibility info.
Siehe auch
- CSS
stop-opacity
-Eigenschaft stop-color
opacity
fill-opacity
stroke-opacity