Baseline Widely available
The lengthAdjust
read-only property of the SVGTextContentElement
interface reflects the lengthAdjust
attribute of the given element. It takes one of the LENGTHADJUST_*
constants defined on this interface.
lengthAdjust
Property
<svg width="200" height="100">
<text id="myText" x="10" y="50" textLength="100" lengthAdjust="spacing">
Hello, SVG!
</text>
</svg>
const textElement = document.getElementById("myText");
// Access the `lengthAdjust` property
const lengthAdjust = textElement.lengthAdjust;
// Log the base value of the `lengthAdjust` attribute
console.log(lengthAdjust.baseVal); // Output: 1 (e.g. LENGTHADJUST_SPACING)
Specifications Browser compatibility See also
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4