TIL writing modes
POSTED ON:
TAGS: accessibility rtl css mdn
The writing-mode
CSS property determines if lines are laid our horizontally, or vertically.
writing-mode: horizontal-tb; /* horizontal top-bottom */
writing-mode: vertical-lr; /* vertical left-right */
writing-mode: vertical-rl; /* vertical right-left */
writing-mode: sideways-lr; /* sideways left-right - EXPERIMENTAL */
writing-mode: sideways-rl; /* sideways right-left - EXPERIMENTAL */
The direction is determined by the context of the direction of the content.
Left-to-right languages - lts (Like English)
Right-to-left languages - rtl (like Hebrew or Arabic)
If all browsers did it correctly, it should look like this:
Related TILs
Tagged: accessibility