The SVGTextPositioningElement interface is implemented by elements that support attributes that position individual text glyphs. It is inherited by SVGTextElement, SVGTSpanElement, and SVGTRefElement.
On this page
SVGTextPositioningElement
Instance properties
This interface also inherits properties from its parent, SVGTextContentElement.
SVGTextPositioningElement.xRead only-
Returns an
SVGAnimatedLengthListreflecting thexattribute of the given element. SVGTextPositioningElement.yRead only-
Returns an
SVGAnimatedLengthListreflecting theyattribute of the given element. SVGTextPositioningElement.dxRead only-
Returns an
SVGAnimatedLengthListreflecting thedxattribute of the given element. SVGTextPositioningElement.dyRead only-
Returns an
SVGAnimatedLengthListreflecting thedyattribute of the given element. SVGTextPositioningElement.rotateRead only-
Returns an
SVGAnimatedNumberListreflecting therotateattribute of the given element.
Instance methods
This interface doesn't provide any specific methods, but inherits methods from its parent, SVGTextContentElement.
Specifications
Browser compatibility
| Desktop | Mobile | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Chrome | Edge | Firefox | Internet Explorer | Opera | Safari | WebView Android | Chrome Android | Firefox for Android | Opera Android | Safari on IOS | Samsung Internet | |
SVGTextPositioningElement |
1 | 12 | 1.5 | 9 | ≤12.1 | 3 | 3 | 18 | 4 | ≤12.1 | 1 | 1.0 |
dx |
1 | 12 | 1.5 | 9 | ≤12.1 | 3 | 3 | 18 | 4 | ≤12.1 | 1 | 1.0 |
dy |
1 | 12 | 1.5 | 9 | ≤12.1 | 3 | 3 | 18 | 4 | ≤12.1 | 1 | 1.0 |
rotate |
1 | 12 | 1.5 | 9 | ≤12.1 | 3 | 3 | 18 | 4 | ≤12.1 | 1 | 1.0 |
x |
1 | 12 | 1.5 | 9 | ≤12.1 | 3 | 3 | 18 | 4 | ≤12.1 | 1 | 1.0 |
y |
1 | 12 | 1.5 | 9 | ≤12.1 | 3 | 3 | 18 | 4 | ≤12.1 | 1 | 1.0 |
© 2005–2023 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/SVGTextPositioningElement