-webkit-text-fill-color

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since April 2017.

Die `-webkit-text-fill-color CSS Eigenschaft legt die Füll-Farbe der Zeichen eines Textes fest. Ist diese Eigenschaft nicht gesetzt, wird der Wert der color Eigenschaft verwendet.

Syntax

css
/* <color> values */
-webkit-text-fill-color: red;
-webkit-text-fill-color: #000000;
-webkit-text-fill-color: rgb(100 200 0);

/* Global values */
-webkit-text-fill-color: inherit;
-webkit-text-fill-color: initial;
-webkit-text-fill-color: revert;
-webkit-text-fill-color: revert-layer;
-webkit-text-fill-color: unset;

Werte

<color>

Die Vordergrundfüllfarbe des Textinhalts des Elements.

Formale Definition

Anfangswertcurrentcolor
Anwendbar aufalle Elemente
VererbtJa
Berechneter Wertberechnete Farbe
AnimationstypFarbe

Formale Syntax

-webkit-text-fill-color = 
<color>

Beispiele

Ändern der Füllfarbe

CSS

css
p {
  margin: 0;
  font-size: 3em;
  -webkit-text-fill-color: green;
}

HTML

html
<p>This text is green.</p>

Ergebnisse

Spezifikationen

Specification
Compatibility
# the-webkit-text-fill-color

Browser-Kompatibilität

Report problems with this compatibility data on GitHub
desktopmobile
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
-webkit-text-fill-color

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support

Siehe auch