Neova고급 SEO 플랫폼

CSS가 화면을 한 방향으로 고정함

Neova에서는 크롤링이 Chrome으로 페이지를 렌더링할 때 실행됩니다(직접 켜는 설정).

규칙 최종 검토: 2026년 10월 17일 · 가이드 업데이트: 2026년 7월 7일

WCAG 1.3.4 레벨 AA는 한 방향이 필수적인 경우가 아니면 콘텐츠가 세로와 가로 두 방향 모두에서 작동하도록 요구합니다. 기기를 고정해 거치한 사람은 접근하지 못할 수 있습니다. 감지는 실험 단계이므로 확인해 보라는 신호입니다.

해 볼 수 있는 조치

레이아웃을 회전하거나 고정하는 미디어 쿼리 규칙을 제거하고, 콘텐츠가 기기 방향을 따르게 하세요.

Neova가 플래그를 지정하는 이유

  • WCAG 1.3.4(AA 수준)는 특정 방향이 꼭 필요한 경우가 아니라면 콘텐츠가 세로와 가로 모두에서 작동해야 한다고 요구합니다.
  • 휠체어에 태블릿이나 휴대폰을 고정해 쓰는 사람은 기기를 돌릴 수 없어, 방향이 고정된 레이아웃을 쓸 수 없습니다.
  • 감지 방식이 실험적이므로, 직접 확인해 보라는 신호입니다.

출처

전체 가이드

이 부분은 현재 영어로만 제공됩니다.

This check flags CSS that uses @media (orientation: …) to force content into a single orientation — typically a transform: rotate(90deg) hack that pins a page to portrait or landscape. Locking orientation breaks WCAG 1.3.4 Orientation and shuts out anyone whose device is fixed in one position, from wheelchair-mounted tablets to people who simply can’t rotate their phone.

Why Orientation Locking Is an Accessibility Failure

Plenty of users can’t rotate their device on demand. A tablet clamped to a wheelchair arm stays in one orientation permanently. Someone with low grip strength or a tremor may hold a phone in exactly one way. WCAG 1.3.4 (Level AA) says content must not restrict its view to a single orientation unless that orientation is essential. When your CSS detects the “wrong” orientation and rotates the whole page to compensate, you’ve made that restriction for the user — and you’ve usually broken scrolling, touch targets, and layout in the bargain.

A Real Failing Pattern and the Fix

/* FAILING: force everything to landscape by rotating in portrait */
@media (orientation: portrait) {
  html {
    transform: rotate(90deg);
    transform-origin: left top;
    width: 100vh;
    height: 100vw;
    overflow: hidden;
  }
}

/* Also failing: a "please rotate your device" wall */
@media (orientation: portrait) {
  body > * { display: none; }
  .rotate-warning { display: block; }
}
/* FIXED: let both orientations work; adapt layout instead of blocking it */
.board {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;      /* portrait: single column */
}
@media (orientation: landscape) {
  .board { grid-template-columns: 1fr 1fr; }  /* landscape: two columns */
}

The fix keeps both orientations fully usable. Instead of rotating the viewport or hiding content until the user complies, it responds to orientation as a layout hint — more columns in landscape, a single column in portrait. Nothing is locked; nobody is told to turn their device.

Lock Hacks vs. Responsive Adaptation

Approach What It Does in the “Wrong” Orientation 1.3.4 Result
transform: rotate(90deg) on html/body Rotates the whole UI, breaks scroll & touch Fails
Hiding content + “rotate your device” overlay Blocks all content until rotated Fails
JS screen.orientation.lock() Prevents rotation at the OS level Fails
Grid/flex reflow per orientation Re-lays-out, stays fully usable Passes
No orientation query at all Content simply reflows to width Passes

How to Detect It on Your Own Site

  1. axe DevTools: run a scan and look for “css-orientation-lock”. It parses your stylesheets for orientation media queries that apply a rotating transform and flags the offending rule.
  2. Lighthouse: run the Accessibility audit on a mobile emulation profile; content that vanishes or rotates when you flip orientation shows up in the manual-check and contrast/layout items. Toggle the device orientation in DevTools’ device toolbar to reproduce.
  3. WAVE: load the page in the extension, then rotate the emulated viewport. WAVE’s structure view makes it obvious when content is hidden or the visual order collapses in one orientation.
  4. Real-device test: open the page on a phone with rotation lock off, then physically rotate. If the page rotates its own content the wrong way, hides everything, or nags you to turn the device, you’ve reproduced the failure.

How to Fix It

  1. Delete any transform: rotate() tied to an @media (orientation) query on html, body, or a top-level wrapper. That’s the core anti-pattern.
  2. Remove “please rotate your device” overlays that hide content. If landscape genuinely suits your layout better, optimize for it without blocking portrait.
  3. Strip any JavaScript call to screen.orientation.lock() unless the orientation is truly essential (see FAQ).
  4. Rebuild the layout with responsive grid or flexbox that reflows to the available width, using @media (orientation: landscape) only to enhance, never to gate access.
  5. Re-test by rotating a real device or the DevTools device toolbar; both orientations should show the same content, fully operable.

The One Exception, and the Stakes

WCAG carves out an exception: content whose orientation is essential may lock. A piano keyboard app, a bank cheque you photograph, or a virtual-reality view can legitimately require landscape, because the task itself depends on it. That bar is high — “our design looks nicer wide” doesn’t clear it. For everything else, locking orientation is a silent exclusion: the user who can’t rotate their device never sees a workaround, just a broken or hidden page. Because this is about how content reflows to the viewport, it sits close to width-based reflow concerns like the viewport minimum-scale and zoom checks — both are about never trapping the user in one fixed view.

FAQ

Can I Ever Require Landscape?

Only when the orientation is essential to the task — think a level/inclinometer tool, a wide data-visualization that’s meaningless narrow, or immersive VR. If the same information can be presented in portrait with reflow, the exception doesn’t apply and you must support both.

Isn’t a “Rotate Your Device” Message Helpful?

Not to someone who can’t rotate. It reads as a locked door with a sign telling them to do the one thing they’re unable to do. Adapt the layout instead of demanding the user adapt their hardware.

Does Using @media (orientation) at All Fail This Check?

No — the query itself is fine and useful. The failure is specifically using it to rotate the viewport or hide content so one orientation is unusable. Reflowing your grid per orientation passes cleanly.

What About Games or Apps Built for One Orientation?

If the orientation is genuinely essential to gameplay or the tool, the WCAG exception covers you. Document why it’s essential; don’t reach for the exception just to avoid building a responsive layout.

Will Fixing This Affect My Mobile SEO?

It helps. Search engines evaluate mobile usability, and content that reflows cleanly to any viewport — rather than rotating or hiding itself — scores better on the mobile-friendliness signals crawlers care about, on top of clearing the WCAG requirement.

내 사이트에서 찾아보기

Neova는 크롤링할 때마다 이 점검과 다른 모든 점검을 실행하고, 수정 방법을 팀을 위한 티켓으로 작성합니다.

  • Mac, Windows, Linux용 데스크톱 앱
  • 출처가 함께 있는 696개 점검 전체
  • Search Console과 Analytics 4를 읽기 전용으로 연결
  • Jira, Linear, Asana로 티켓 보내기

Neova 다운로드 Desktop Free 플랜 또는 Solo 14일 무료, 카드 불필요.

접근성 점검 전체 · 가이드 · 점검 라이브러리

작성: Neova Labs · 점검 라이브러리로 돌아가기