Get to know MDN better
This feature is well established and works across many devices and browser versions. It’s been available across browsers since July 2015.
The SVGTextPathElement interface corresponds to the <textPath> element.
EventTarget Node Element SVGElement SVGGraphicsElement SVGTextContentElement SVGTextPathElementThis interface also inherits properties from its parent interface, SVGTextContentElement.
SVGTextPathElement.href Read onlyAn SVGAnimatedString corresponding to the href or xlink:href attribute of the given element.
SVGTextPathElement.startOffset Read onlyAn SVGAnimatedLength corresponding to the X component of the startOffset attribute of the given element.
SVGTextPathElement.method Read onlyAn SVGAnimatedEnumeration corresponding to the method attribute of the given element. It takes one of the TEXTPATH_METHODTYPE_* constants defined on this interface.
SVGTextPathElement.spacing Read onlyAn SVGAnimatedEnumeration corresponding to the spacing attribute of the given element. It takes one of the TEXTPATH_SPACINGTYPE_* constants defined on this interface.
This interface does not provide any specific methods, but implements those of its parent, SVGTextContentElement.
The type is not one of predefined types. It is invalid to attempt to define a new value of this type or to attempt to switch an existing value to this type.
TEXTPATH_METHODTYPE_ALIGN (1)Corresponds to the value align.
TEXTPATH_METHODTYPE_STRETCH (2)Corresponds to the value stretch.
TEXTPATH_SPACINGTYPE_UNKNOWN (0)The type is not one of predefined types. It is invalid to attempt to define a new value of this type or to attempt to switch an existing value to this type.
TEXTPATH_SPACINGTYPE_AUTO (1)Corresponds to the value auto.
TEXTPATH_SPACINGTYPE_EXACT (2)Corresponds to the value exact.
| Scalable Vector Graphics (SVG) 2 # InterfaceSVGTextPathElement |
Enable JavaScript to view this browser compatibility table.
This page was last modified on May 2, 2025 by MDN contributors.
Your blueprint for a better internet.
Visit Mozilla Corporation’s not-for-profit parent, the Mozilla Foundation.
Portions of this content are ©1998–2026 by individual mozilla.org contributors. Content available under a Creative Commons license.