color-interpolation-filters
Baseline
Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since Januar 2020.
Die color-interpolation-filters CSS-Eigenschaft gibt den Farbraum für Bildbearbeitungsoperationen an, die über SVG-Filtereffekte durchgeführt werden. Wenn sie explizit deklariert ist, überschreibt der Wert der CSS-Eigenschaft jeden im color-interpolation-filters-Attribut des Elements angegebenen Wert.
Hinweis:
Die color-interpolation-filters-Eigenschaft ist nur für SVG-Filteroperationen relevant. Sie hat keinen Effekt auf Filterprimitiven wie <feOffset>, <feImage>, <feTile>, und <feFlood>, sondern gilt stattdessen für die verschiedenen Filtereffekt-Elemente (z. B. <feBlend>); siehe die SVG-Seite color-interpolation-filters für eine vollständige Liste.
Hinweis:
Es ist wichtig zu beachten, dass das SVG-Attribut color-interpolation einen Anfangswert von sRGB hat, während color-interpolation-filters einen Anfangswert von linearRGB hat. Das bedeutet, dass im Standardfall Interpolationen von Filtereffekten in einem anderen Farbraum als alle anderen Farbinterpolationen stattfinden.
Syntax
color-interpolation-filters: auto;
color-interpolation-filters: linearRGB;
color-interpolation-filters: sRGB;
/* Global values */
color-interpolation-filters: inherit;
color-interpolation-filters: initial;
color-interpolation-filters: revert;
color-interpolation-filters: revert-layer;
color-interpolation-filters: unset;
Werte
linearRGB-
Gibt an, dass die Farbinterpolation im linearisierten RGB-Farbraum erfolgen soll, wie in der sRGB-Spezifikation beschrieben. Dies ist der Standardwert der Eigenschaft.
sRGB-
Gibt an, dass die Farbinterpolation im gamma-kodierten sRGB-Farbraum erfolgen soll.
auto-
Gibt an, dass der Benutzeragent entweder den
sRGB- oder denlinearRGB-Raum für die Farbinterpolation auswählen kann. Diese Option zeigt an, dass der Autor nicht verlangt, dass die Farbinterpolation in einem bestimmten Farbraum erfolgt.
Formale Definition
| Anfangswert | linearRGB |
|---|---|
| Anwendbar auf | The set of elements that control the output of a <filter> element in <svg> |
| Vererbt | Ja |
| Berechneter Wert | wie angegeben |
| Animationstyp | diskret |
Formale Syntax
color-interpolation-filters =
auto |
sRGB |
linearRGB
Spezifikationen
| Specification |
|---|
| Filter Effects Module Level 1> # ColorInterpolationFiltersProperty> |
Browser-Kompatibilität
Loading…