writing-modeBaseline · Widely available
The writing-mode CSS property sets whether text is laid out horizontally or vertically, and left to right, or right to left.
Supported in all major browsers for at least 30 months — safe to use without fallbacks. Baseline since Mar 27, 2017. Widely available since Sep 27, 2019.
Browser support
DesktopChrome
1–47Not supported
48+Supportedsince Jan 20, 2016
Current: 155Edge
12+Supportedsince Jul 29, 2015
Current: 154Firefox
1–40Not supported
41+Supportedsince Sep 22, 2015
Current: 157Safari
1–10Not supported
10.1+Supportedsince Mar 27, 2017
Current: 27MobileChrome Android
18–47Not supported
48+Supportedsince Jan 26, 2016
Current: 155Firefox Android
4–40Not supported
41+Supportedsince Sep 22, 2015
Current: 157Safari iOS
1–10Not supported
10.3+Supportedsince Mar 27, 2017
Current: 27How to use
This feature is Baseline widely available — use it freely, no fallback needed.
Example
Full syntax and examples are on MDN: writing-mode.
Feature detection
CSS · check before using
@supports (writing-mode: initial) {
/* styles that rely on writing-mode */
}
/* or in JavaScript */
if (CSS.supports("writing-mode", "initial")) {
// use it
}Documentation (MDN)
Specification
Usage share
Sub-features
Support for each part of the feature (7). The overall table above shows when the whole feature works.
| Sub-feature | Chrome | Edge | Firefox | Safari | Chrome Android | Firefox Android | Safari iOS |
|---|---|---|---|---|---|---|---|
| writing-mode | 48 | 12 | 41 | 10.1 | 48 | 41 | 10.3 |
| writing-mode.horizontal-tb | 48 | 12 | 43 | 10.1 | 48 | 43 | 10.3 |
| writing-mode.sideways-lr | 132 | 132 | 43 | 18.4 | 132 | 43 | 18.4 |
| writing-mode.sideways-rl | 132 | 132 | 43 | 18.4 | 132 | 43 | 18.4 |
| writing-mode.vertical-lr | 48 | 12 | 43 | 10.1 | 48 | 43 | 10.3 |
| writing-mode.vertical-rl | 48 | 12 | 43 | 10.1 | 48 | 43 | 10.3 |
| svg.global_attributes.writing-mode | 48 | 12 | 41 | 10.1 | 48 | 41 | 10.3 |