files/en-us/web/svg/reference/attribute/text-overflow/index.md
The SVG text-overflow attribute specifies how text content block elements render when text overflows line boxes. This can happen, for example, when the {{SVGAttr("white-space")}} attribute or CSS {{CSSxref("white-space")}} property has the value nowrap. The property does not apply to pre-formatted text or text situated on a path.
In SVG, text-overflow has an effect if there is a validly specified wrapping area, regardless of the computed value of the {{CSSxref("overflow")}} property on the text content block element. The effect is purely visual: clipped text is not removed from the DOM, and any ellipsis, if presented, does not itself become part of the DOM. For all the DOM methods, it is as if text-overflow was not applied, and as if the wrapping area did not constrain the text.
[!NOTE] As a presentation attribute,
text-overflowalso has a CSS property counterpart: {{cssxref("text-overflow")}}. When both are specified, the CSS property takes priority.
clip
ellipsis
For more information, refer to the CSS text-overflow property.
{{Specifications}}
{{Compat}}