Firefox Tomorrow

css module

CSS writing modes

View on MDN ↗

The CSS writing modes module defines support for various international writing modes and their combinations, including left-to-right and right-to-left text ordering as well as horizontal and vertical orientations.

A writing mode in CSS is determined by the writing-mode, direction, and text-orientation properties defined in this module. It is defined primarily in terms of its inline base direction and block flow direction.

Some horizontal languages are left-to-right, including Latin and Indic scripts. Other horizontal languages are written right-to-left, including Hebrew and Arabic scripts. Sometimes text needs to be bidirectional, such as when mixing left-to-right and right-to-left scripts. Some languages can be written with a vertical orientation, for example, Chinese, Japanese, and Korean (CJK) scripts.

The CSS writing modes module addresses the orientations of all writing modes. Other modules, such as the CSS ruby layout module, provide rendering models and formatting controls related to the display text annotations.

Reference

Properties

Glossary and terms

Guides

CSS text module

CSS inline layout module

CSS logical properties and values module

CSS display module

CSS generated content

SVG

  • glyph-orientation-horizontal Deprecated
  • glyph-orientation-vertical Deprecated
  • writing-mode

HTML

JavaScript

Specifications

SpecificationsStandards references are available on the canonical MDN page.

See also