property

webkit text stroke — CSS reference

Shorthand for glyph stroke width and color. A wide outline can reduce legibility and should not replace adequate contrast.

Formal Syntax & Structure

css syntaxcss
-webkit-text-stroke: 2px blue;

Working Example

Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>-webkit-text-stroke</title><style>body{margin:8px;background:white;color:black;font:16px/20px sans-serif}*{box-sizing:content-box}#a{font:40px sans-serif;-webkit-text-stroke:2px blue}</style><body><div id="a">Example text</div></body></html>
CSS Reference