MDN self-hosted library · e01.org

`-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.

css
/* 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;
html
<p id="example">The stroke of this text is red.</p>
css
#example {
  font-size: 3em;
  margin: 0;
  -webkit-text-stroke: 2px red;
}