--- title: '-webkit-text-stroke' slug: Web/CSS/-webkit-text-stroke tags: - CSS - No estándar(2) - Propiedad - Referencia translation_of: Web/CSS/-webkit-text-stroke ---
La propiedad CSS -webkit-text-stroke especifica la anchura y color del trazo para los caractéres de texto. Esta forma es una manera corta en relación con la forma larga que necesita usar las propiedades{{cssxref("-webkit-text-stroke-width")}} y {{cssxref("-webkit-text-stroke-color")}}.
{{cssinfo}}
/* Valores anchura y color */ -webkit-text-stroke: 4px navy; /* Valores globales */ -webkit-text-stroke: inherit; -webkit-text-stroke: initial; -webkit-text-stroke: unset;
<length><color><p id="example">El trazo de este texto es rojo.</p>
#example {
font-size: 50px;
margin: 0;
-webkit-text-stroke: 2px red;
}
{{EmbedLiveSample("Example", 600, 60)}}
| Especificación | Estado | Comentario |
|---|---|---|
| {{SpecName('Compat', '#the-webkit-text-stroke', '-webkit-text-stroke')}} | {{Spec2('Compat')}} | Estandarización Inicial |
| Referencia CSS Safari '-webkit-text-stroke' en ese documento. |
Documentación no oficial y no estándar | Documentación Inicial |