monks/text_orientation

The text-orientation CSS property sets the orientation of the text characters in a line. It only affects text in vertical mode (when {{cssxref(“writing-mode”)}} is not horizontal-tb). It is useful for controlling the display of languages that use vertical script, and also for making vertical table headers.

Values

pub const inherit: #(String, String)
pub const initial: #(String, String)
pub const mixed: #(String, String)
  • : Rotates the characters of horizontal scripts 90° clockwise. Lays out the characters of vertical scripts naturally. Default value.
pub fn raw(value: String) -> #(String, String)

Enter a raw string value for text-orientation

pub const revert: #(String, String)
pub const revert_layer: #(String, String)
pub const sideways: #(String, String)
  • : Causes characters to be laid out as they would be horizontally, but with the whole line rotated 90° clockwise.
pub const unset: #(String, String)
pub const upright: #(String, String)
  • : Lays out the characters of horizontal scripts naturally (upright), as well as the glyphs for vertical scripts. Note that this keyword causes all characters to be considered as left-to-right: the used value of {{cssxref(“direction”)}} is forced to be ltr.
pub fn var(variable: String) -> #(String, String)

Enter a variable name to be used for text-orientation. It will be wrapped in var() and have -- prepended.

Search Document