/* Width and color values */
-webkit-text-stroke: 4px navy;
/* Global values */
-webkit-text-stroke: inherit;
-webkit-text-stroke: initial;
-webkit-text-stroke: revert;
-webkit-text-stroke: revert-layer;
-webkit-text-stroke: unset;`-webkit-text-stroke` CSS property / notebook
`-webkit-text-stroke` CSS property
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.
<p id="example">The stroke of this text is red.</p>#example {
font-size: 3em;
margin: 0;
-webkit-text-stroke: 2px red;
}