SVG textPath side attribute
- Category
- Miscellaneous
- Type
- Chromium catches up
- Status
- Proposed (Chrome Proposed)
- Intent stage
- None
WPT details: https://wpt.fyi/results/svg/types/scripted/SVGAnimatedEnumeration-SVGTextPathElement.html https://wpt.fyi/results/svg/text/reftests/textpath-side-003.svg https://wpt.fyi/results/svg/text/reftests/textpath-side-005.svg
Summary
Allows authors to choose which side of a path SVG text follows using the side attribute on the textPath element. Setting side="right" effectively reverses the path direction for text layout, making it easy to place text inside or outside a circular path without duplicating or manually reversing the path data.
Motivation
Authors placing text along a path have no way to flip which side of the path the text appears on. The side attribute lets authors write side="right" to place text on the opposite side of the path, without duplicating or reversing the path data. This helps label both the inside and outside of a shape, such as a circular path, with different text on each side.
Standards & signals
- Specification: https://w3c.github.io/svgwg/svg2-draft/text.html#TextPathElementSideAttribute
- Firefox: Shipped/Shipping
- Safari: In development
- Web developers: No signals
- Tracking bug: https://issues.chromium.org/issues/40362379
Ecosystem
- Web Platform Tests: https://wpt.fyi/results/?q=svg%2Ftypes%2Fscripted%2FSVGAnimatedEnumeration-SVGTextPathElement
- Chrome Platform Showcase: https://chrome-platform-showcase.paulkinlan-ea.deno.net/features
- GenDN reference: https://gendn.paulkinlan-ea.deno.net/features
- chrome.dev demos search: https://www.google.com/search?q=site%3Achrome.dev+SVG%20textPath%20side%20attribute
- MDN Web Docs: https://developer.mozilla.org/en-US/search?q=SVG%20textPath%20side%20attribute
- Baseline status: https://webstatus.dev/?q=SVG%20textPath%20side%20attribute