coderef

text-orientationBaseline · Widely available

The text-orientation CSS property sets the how text is typeset within a line when the writing mode is vertical.

Supported in all major browsers for at least 30 months — safe to use without fallbacks. Baseline since Sep 16, 2020. Widely available since Mar 16, 2023.

Browser support

DesktopChrome
1–47Not supported
48+Supportedsince Jan 20, 2016
Current: 155
Edge
12–18Not supported
79+Supportedsince Jan 15, 2020
Current: 154
Firefox
1–40Not supported
41+Supportedsince Sep 22, 2015
Current: 157
Safari
1–13.1Not supported
14+Supportedsince Sep 16, 2020
Current: 27
MobileChrome Android
18–47Not supported
48+Supportedsince Jan 26, 2016
Current: 155
Firefox Android
4–40Not supported
41+Supportedsince Sep 22, 2015
Current: 157
Safari iOS
1–13.4Not supported
14+Supportedsince Sep 16, 2020
Current: 27

How to use

This feature is Baseline widely available — use it freely, no fallback needed.

Example

Full syntax and examples are on MDN: text-orientation.

Feature detection

CSS · check before using
@supports (text-orientation: initial) {
  /* styles that rely on text-orientation */
}

/* or in JavaScript */
if (CSS.supports("text-orientation", "initial")) {
  // use it
}

Sub-features

Support for each part of the feature (4). The overall table above shows when the whole feature works.

Sub-featureChromeEdgeFirefoxSafariChrome AndroidFirefox AndroidSafari iOS
text-orientation48794114484114
text-orientation.mixed48794114484114
text-orientation.sideways4879≤441448≤4414
text-orientation.upright48794114484114