Propiedad text-fill-color

La text-fill-color property establece el color de relleno de los caracteres de texto o su transparencia usando el valor transparent.

Sintaxis

cssselector {
  text-fill-color: color o transparent;
}

Ejemplo

Apliquemos un relleno degradado con transparencia a nuestro texto:

html<p>
  This is a text.
</p>
cssbody {
  width: 200px;
  height: 100px;
}
p {
  -webkit-text-fill-color: transparent;
  text-fill-color: transparent;
  font-size: 26px;
  background: linear-gradient(#c42222, #ffef5e);
  -webkit-background-clip: text;
  background-clip: text;
}

Результат:

Ver también