You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
getTotalLength() in the context of textPath element with an href #1178
The referenced element is itself measurable, so the information is there but not directly accessible, which is what the method is saying.
If path attribute is present but empty, the spec says rendering falls back to href. The API would not follow that fallback. So the text is visibly sitting on a curve while getTotalLength() reports 0.
The rendering and the API would give different results for the same element.
How should this be solved?
If not solved, it would create complexity.
Activity
longsonr commentedon Sep 13, 2026
I guess the options are
3 might be most useful as you could just call the API whatever the definition of the textPath.