SVGTextPositioningElement

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since January 2020.

The SVGTextPositioningElement interface is implemented by elements that support attributes that position individual text glyphs. It is inherited by SVGTextElement, SVGTSpanElement, and SVGTRefElement.

EventTarget Node Element SVGElement SVGGraphicsElement SVGTextContentElement SVGTextPositioningElement

Instance properties

This interface also inherits properties from its parent, SVGTextContentElement.

SVGTextPositioningElement.x Read only

Returns an SVGAnimatedLengthList reflecting the x attribute of the given element.

SVGTextPositioningElement.y Read only

Returns an SVGAnimatedLengthList reflecting the y attribute of the given element.

SVGTextPositioningElement.dx Read only

Returns an SVGAnimatedLengthList reflecting the dx attribute of the given element.

SVGTextPositioningElement.dy Read only

Returns an SVGAnimatedLengthList reflecting the dy attribute of the given element.

SVGTextPositioningElement.rotate Read only

Returns an SVGAnimatedNumberList reflecting the rotate attribute of the given element.

Instance methods

This interface doesn't provide any specific methods, but inherits methods from its parent, SVGTextContentElement.

Specifications

Specification
Scalable Vector Graphics (SVG) 2
# InterfaceSVGTextPositioningElement

Browser compatibility

Report problems with this compatibility data on GitHub
desktopmobile
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
SVGTextPositioningElement
dx
dy
rotate
x
y

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support