-webkit-text-stroke-width
Defines how thick the outline (stroke) around text characters should be. Keep it subtle (1-2px) to prevent the text from looking distorted.
It is documented as part of the WebKit Extensions specification.
Syntax
/* Usage Example */
h1 {
-webkit-text-stroke-width: 1.5px;
-webkit-text-stroke-color: #333;
font-size: 3rem;
}
/* Global values */
-webkit-text-stroke-width: inherit;
-webkit-text-stroke-width: initial;
-webkit-text-stroke-width: revert;
-webkit-text-stroke-width: revert-layer;
-webkit-text-stroke-width: unset;
-webkit-text-stroke-width Browser support
Widely available
Since
2017 96% global usage
This feature is well established and works across many devices and browser versions. It has been available across browsers since 2017.
1+
49+
3+
15+