text-orientation
The text-orientation property specifies the orientation of text.
Formal Syntax
text-orientation =
mixed | upright | sideways
- Initial value
mixed- Applies to
- all elements except table row groups, rows, column groups, and columns; and text
- Inherited
- yes
- Percentages
- n/a
- Computed value
- specified value
- Animation type
- not animatable
See specification
JavaScript Access
// Access via element.style
element.style.textOrientation = "mixed";
Browser Support
standard | MDN ยท Spec
| Feature | Chrome | Firefox | Safari | Edge |
| text-orientation | 48 | 41 | 14 | 79 |
| mixed | 48 | 41 | โค13.1 | 79 |
| sideways | 12 | 44 | 7 | 79 |
| upright | 12 | 41 | โค13.1 | 79 |