coderef

page-orientationLimited availability

The page-orientation CSS property sets the rotation of a page after pagination. This allows pages with the same size declaration to display with different orientations.

Not yet supported in all major browsers — check the table and provide a fallback.

Browser support

DesktopChrome
1–84Not supported
85+Supportedsince Aug 25, 2020
Current: 155
Edge
12–84Not supported
85+Supportedsince Aug 27, 2020
Current: 154
Firefox
1–121Not supported
122+Supportedsince Jan 23, 2024
Current: 157
Safari
✕Not supportedup to 27
Current: 27
MobileChrome Android
18–84Not supported
85+Supportedsince Aug 25, 2020
Current: 155
Firefox Android
4–121Not supported
122+Supportedsince Jan 23, 2024
Current: 157
Safari iOS
✕Not supportedup to 27
Current: 27

How to use

Not supported in Safari, Safari iOS. Use feature detection below and provide a fallback (or a polyfill) for those browsers.

Example

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

Feature detection

There’s no simple runtime check for this feature; rely on the support table and test in your target browsers.