A writing mode changes the inline direction of text and the block direction in which boxes stack. This matters when layouts must support right-to-left or vertical languages. section 3.1.2
Use logical directions instead of assuming horizontal top-to-bottom layout:
- Use inline-size instead of width and block-size instead of height; each adapts to the current writing mode. section 3.1.2
- Use inline-start and inline-end or block-start and block-end instead of left, right, top, and bottom. section 3.1.2
- Treat inline direction as text flow and block direction as the stacking direction for boxes such as paragraphs. section 3.1.2
Figure 3.5 Inline and block directions in various writing modes
Compare inline and block directions across several writing modes, including the highlighted inline-start border. section 3.1.2
