The text-decoration
attribute defines whether text is decorated with an underline, overline and/or strike-through. It is a shorthand for the text-decoration-line
and text-decoration-style
properties.
The fill and stroke of the text decoration are given by the fill and stroke of the text at the point where the text decoration is declared.
The paint order of the text decoration, i.e. the fill and stroke, is determined by the value of the paint-order
attribute at the point where the text decoration is declared.
Note: As a presentation attribute, text-decoration
can be used as a CSS property. See the CSS text-decoration
property for more information.
You can use this attribute with the following SVG elements: