← All WCAG 2.1 criteria
1.3.4Level AA1.3 Adaptable

Orientation

Content does not restrict its view and operation to a single display orientation (portrait or landscape) unless a specific orientation is essential.

What it means

The intent of this success criterion is to ensure that content displays in the orientation (portrait or landscape) preferred by the user. Some websites and applications automatically set and restrict the screen to a particular display orientation and expect that users will respond by rotating their device to match, but this can create problems. Some users have their devices mounted in a fixed orientation (e.g. on the arm of a power wheelchair). Therefore, websites and applications need to support both orientations by not restricting the orientation. Changes in content or functionality due to the size of display are not covered by this criterion which is focused on restrictions of orientation. Historically, devices tended to have a fixed-orientation display, and all content was created to match that display orientation. Today, most handhelds and many other devices (e.g., monitors) have a hardware-level ability to dynamically adjust default display orientation based on sensor information. The goal of this success criterion is that authors should never restrict content's orientation, thus ensuring that it always match the device display orientation. It is important to distinguish between an author's responsibility not to restrict content to a specific orientation, and device-specific settings governing the locking of display orientation. Many handheld devices offer a mechanical switch or a system setting (or both) to allow the user to lock the device display to a specific orientation. Where a user decides to lock their entire device to an orientation, all applications are expected to pick up that setting and to display content accordingly.

Failing example

/* Fails: CSS locks orientation */
@media (orientation: portrait) {
  body { display: none; }
}

How to fix it

/* Pass: support both orientations */
/* Remove orientation lock entirely. If a specific
   orientation is truly essential (e.g. a piano app),
   explain why in the UI instead of hiding content. */

How A11yRisk detects this

A11yRisk detects this criterion automatically.

Scan your site for this violation