CSS Media queries must not lock display orientation

Rule ID: css-orientation-lock
Ruleset: axe-core 4.10
User Impact: Serious
Guidelines: WCAG 2.1 Experimental, EN 301 549

Accessibility testing for dev teams - No experience required

Find and fix up to 80% of accessibility issues with axe DevTools Pro. Get started with your free trial today. No credit card needed.

Compliance Data & Impact

User Impact

Serious
Minor
Critical

Disabilities Affected

  • Attention Deficit
  • Dyslexia
  • Sighted Keyboard Users
  • Low Vision
  • Mobility
  • Cognitive

Standard(s)

  • WCAG 2.1 Experimental
  • EN 301 549

WCAG Success Criteria [WCAG 2.1 Experimental]

  • 1.3.4: MUST: Orientation

    How to Fix the Problem

    Do not use CSS or other techniques to lock device orientation. Test content orientation views to ensure that content continues to be accessible to all users, including assistive technology users, in any orientation.

    Why it Matters

    Assistive technology users may be unable to access orientation features with their devices or assistive technologies.

    Rule Description

    The screen orientation (e.g. portrait or landscape) of mobile applications should not be locked in one mode. Users should be able to change the orientation of their device between portrait and landscape with the page adjusting accordingly in order to remain understandable. Also, when opening a page, it should display in the user’s current orientation.

    The Algorithm (in simple terms)

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

    Resources

    Refer to the complete list of axe 4.10 rules.

    Was this information helpful?

    You have already given your feedback, thank you..

    Your response was as follows:

    Was this information helpful?
    Date/Time feedback was submitted: