- From: Karl Dubost via GitHub <noreply@w3.org>
- Date: Tue, 07 Apr 2026 03:17:00 +0000
- To: public-svg-issues@w3.org
karlcow has just created a new issue for https://github.com/w3c/svgwg:
== `side` and `path` attributes on textPath are missing on the IDL ==
So in #1068, we decided to keep the side attribute on textPath.
@viralipurbey added some better testcase coverage on WPT.
https://w3c.github.io/svgwg/svg2-draft/text.html#InterfaceSVGTextPathElement
The IDL has
```
[SameObject] readonly attribute SVGAnimatedLength startOffset;
[SameObject] readonly attribute SVGAnimatedEnumeration method;
[SameObject] readonly attribute SVGAnimatedEnumeration spacing;
```
But the definition in the spec has:
https://w3c.github.io/svgwg/svg2-draft/text.html#TextPathElement
```
‘lengthAdjust’
‘textLength’
‘path’
‘href’
‘startOffset’
‘method’
‘spacing’
‘side’
```
I was surprised to not see `side` defined in the IDL.
https://w3c.github.io/svgwg/svg2-draft/text.html#TextPathElementSideAttribute
Probably `side` and `path`(?) should be added?
```
[Exposed=Window]
interface SVGTextPathElement : SVGTextContentElement {
// textPath Method Types
const unsigned short TEXTPATH_METHODTYPE_UNKNOWN = 0;
const unsigned short TEXTPATH_METHODTYPE_ALIGN = 1;
const unsigned short TEXTPATH_METHODTYPE_STRETCH = 2;
// textPath Spacing Types
const unsigned short TEXTPATH_SPACINGTYPE_UNKNOWN = 0;
const unsigned short TEXTPATH_SPACINGTYPE_AUTO = 1;
const unsigned short TEXTPATH_SPACINGTYPE_EXACT = 2;
// textPath Side Types ← missing
const unsigned short TEXTPATH_SIDETYPE_UNKNOWN = 0;
const unsigned short TEXTPATH_SIDETYPE_LEFT = 1;
const unsigned short TEXTPATH_SIDETYPE_RIGHT = 2;
[SameObject] readonly attribute SVGAnimatedString path;
[SameObject] readonly attribute SVGAnimatedLength startOffset;
[SameObject] readonly attribute SVGAnimatedEnumeration method;
[SameObject] readonly attribute SVGAnimatedEnumeration spacing;
[SameObject] readonly attribute SVGAnimatedEnumeration side;
};
SVGTextPathElement includes SVGURIReference;
```
Please view or discuss this issue at https://github.com/w3c/svgwg/issues/1086 using your GitHub account
--
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Tuesday, 7 April 2026 03:17:02 UTC