- From: Marcos Cáceres <notifications@github.com>
- Date: Wed, 22 Jul 2026 23:35:31 -0700
- To: w3c/screen-orientation <screen-orientation@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Thursday, 23 July 2026 06:35:36 UTC
marcoscaceres created an issue (w3c/screen-orientation#279) `Landscape` is defined as width _greater than_ height and `Portrait` as height _greater than_ width, both strict. A screen with a 1:1 aspect ratio therefore matches neither, so it cannot be assigned to either of the "screen orientation values lists" and its type-to-angle mapping is left undefined. Implementations already diverge: Gecko maps a square screen to `landscape-primary` (`Screen::GetDefaultOrientationType` uses `Width() >= Height()`, `widget/Screen.cpp`), while WebKit's natural orientation is a per-device-class constant that ignores dimensions entirely (`naturalScreenOrientationType`, `Source/WebCore/page/ScreenOrientationType.h`). So a square screen is `landscape-primary` in Gecko but device-dependent in WebKit. Should the spec define a tie-breaker for equal dimensions (e.g. square implies landscape, matching Gecko's `>=`)? -- Reply to this email directly or view it on GitHub: https://github.com/w3c/screen-orientation/issues/279 You are receiving this because you are subscribed to this thread. Message ID: <w3c/screen-orientation/issues/279@github.com>
Received on Thursday, 23 July 2026 06:35:36 UTC