CSS -webkit-text-stroke Property Reference
The CSS -webkit-text-stroke property is a standard property in WebKit Extensions. Review its formal syntax, computed behavior, and practical declarations.
Updated 2026-08-12
-webkit-text-stroke overview
The CSS -webkit-text-stroke property is a standard property in WebKit Extensions. Review its formal syntax, computed behavior, and practical declarations.
The computed value normally inherits from the parent element when no declaration wins the cascade.
Syntax and formal definition
| Field | Value |
|---|---|
| Formal syntax | <length> || <color> |
| Initial value | -webkit-text-stroke-width, -webkit-text-stroke-color |
| Applies to | allElements |
| Inherited | Yes |
| Percentages | no |
| Computed value | -webkit-text-stroke-width, -webkit-text-stroke-color |
| Animation type | -webkit-text-stroke-width, -webkit-text-stroke-color |
| Media | visual |
| Specification group | WebKit Extensions |
| Status | Standard |
Practical examples
These declarations demonstrate valid ways to set -webkit-text-stroke. The initial and inherit global keywords remain available even when a property-specific value is preferable.
.reset-example {
-webkit-text-stroke: initial;
}
.inherit-example {
-webkit-text-stroke: inherit;
}
@supports (-webkit-text-stroke: initial) {
.supported {
-webkit-text-stroke: initial;
}
}