Skip to content
1.3.4 · Level AA · WCAG 2.1 · Perceivable → Adaptable

Orientation

Content works in both portrait and landscape. A page does not lock itself to one orientation unless that orientation is essential, as it might be for a piano app or a bank cheque scanner.

Why it matters

A wheelchair user with a tablet mounted in landscape cannot rotate it. A "please rotate your device" overlay, or a layout that only renders in portrait, locks them out entirely.

Needs manual testing

axe-core has an experimental css-orientation-lock rule that looks for a media query that rotates the page, but it needs the stylesheet contents and misses JavaScript and overlay-based locks. Rotate a phone and a tablet and check that every page still works.

Fails

<div id="rotate-overlay" class="show-in-landscape">
  <p>Please rotate your device to portrait to use this site.</p>
</div>

The overlay blocks the whole page in landscape. Nothing about reading a product page requires portrait.

Passes

<!-- No orientation overlay. Layout adapts: -->
<style>
  .layout { display: grid; grid-template-columns: 1fr; }
  @media (min-width: 48rem) { .layout { grid-template-columns: 16rem 1fr; } }
</style>

The layout responds to available width, not orientation, so it works whichever way the device is held.

Openwell finds violations like this one across your whole site, clusters them by the component that caused them, and generates a fix that's re-validated before you see it.

Scan your site free
WCAG 1.3.4 Orientation — what it requires and how to fix it — Openwell