[Webkit-unassigned] [Bug 254863] iOS 16.4 - Screen Orientation API Inconstancy

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Apr 10 23:06:48 PDT 2023


https://bugs.webkit.org/show_bug.cgi?id=254863

--- Comment #7 from Marcos Caceres <marcosc at apple.com> ---
Hmm... so, the spec says:
https://www.w3.org/TR/screen-orientation/#dfn-screen-orientation-values-table

If you have the phone facing you upright ("portrait natural"), and you turn it right 90deg, it should return "angle 90 or angle 270" (not -90).

In fact, I don't think the spec ever says to return a negative number for the angle, as that would be weird. That's enforced by the "unsigned short":


```
readonly attribute unsigned short angle;
```

I think Webkit is right and Firefox and Chrome are wrong here.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20230411/957ec7f3/attachment.htm>


More information about the webkit-unassigned mailing list