The writing-mode
attribute specifies whether the initial inline-progression-direction for a <text>
element shall be left-to-right, right-to-left, or top-to-bottom. The writing-mode
attribute applies only to <text>
elements; the attribute is ignored for <tspan>
, <tref>
, <altGlyph>
and <textPath>
sub-elements. (Note that the inline-progression-direction can change within a <text>
element due to the Unicode bidirectional algorithm and properties direction
and unicode-bidi
.
As a presentation attribute, it also can be used as a property directly inside a CSS stylesheet, see css writing-mode
for further information
Categories | Presentation attribute |
---|---|
Value | lr-tb | rl-tb | tb-rl | lr | rl | tb | inherit |
Animatable | Yes |
Normative document | SVG 1.1 (2nd Edition) |
The following elements can use the writing-mode
attribute
writing-mode
© 2005–2018 Mozilla Developer Network and individual contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/writing-mode