MDN’s new design is in Beta! A sneak peek:


« SVG Attribute reference home

The textLength attribute is intended to preserve a span of SVG text's display width across a variety of conditions, such as webfonts not loading. It can be applied to either the <text> or <tspan> elements.

Usage context

Categories None
Value <length>
Animatable Yes
Normative document SVG 1.1 (2nd Edition)

Document Tags and Contributors

 Contributors to this page: rolfedh, Tigt
 Last updated by: rolfedh,