For AI agents: the complete documentation index is available at /next/llms.txt, the full documentation bundle is available at /next/llms-full.txt, and this page is available as Markdown at /next/api/css/properties/text-stroke.md.
Lynx
  • English
  • 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.