files/en-us/web/svg/reference/attribute/writing-mode/index.md
The writing-mode attribute specifies whether the initial inline-progression-direction for a {{SVGElement("text")}} element shall be left-to-right, right-to-left, or top-to-bottom. The writing-mode attribute applies only to {{ SVGElement("text") }} elements; the attribute is ignored for {{ SVGElement("tspan") }} and {{ SVGElement("textPath") }} sub-elements. (Note that the inline-progression-direction can change within a {{ SVGElement("text") }} element due to the Unicode bidirectional algorithm and properties {{ SVGAttr("direction") }} and {{ SVGAttr("unicode-bidi") }}.)
[!NOTE] As a presentation attribute,
writing-modealso has a CSS property counterpart: {{cssxref("writing-mode")}}. When both are specified, the CSS property takes priority.
You can use this attribute with the following SVG elements:
horizontal-tb
vertical-rl
vertical-lr
{{Specifications}}
{{Compat}}