text-stroke

Introduction

The text-stroke CSS property specifies the width and color of strokes for text characters.

Examples

Syntax

text-stroke: 4px green;

Values

  • none
    Default value

  • <length>
    Set the width of the stroke

  • <color>
    Set the color of the stroke

Formal definition

Initial valueempty value
Applies toall elements
Inheritedno
Animatableno

Formal syntax

text-stroke = none | <length [0,]> || <color>

Differences from Web

  • Does not support setting attribute values such as thin for stroke width.

Notes

  • Some fonts may have overlapping strokes.

Compatibility

LCD tables only load in the browser

Except as otherwise noted, this work is licensed under a Creative Commons Attribution 4.0 International License, and code samples are licensed under the Apache License 2.0.