W3C home > Mailing lists > Public > whatwg@whatwg.org > May 2013

Re: [whatwg] Forcing orientation in content

From: Gray Zhang <otakustay@gmail.com>
Date: Fri, 3 May 2013 14:29:55 +0800
Message-Id: <692F2AF3-C3AF-47CE-AE31-F56B15039369@gmail.com>
To: Charles McCathie Nevile <chaals@yandex-team.ru>
Cc: whatwg <whatwg@whatwg.org>, David Bruant <bruant.d@gmail.com>
> Not sure if WHATWG is doing anything, but in the W3C there ishttps://dvcs.w3.org/hg/screen-orientation/raw-file/tip/Overview.html in the Web Apps group

Actually I personally have a little more concerns on this API.

First of all, some of current mobile browsers provide `orientation` as a number, whose value is among 0, 90 and -90, how would the current API conform to the new one?

Secondly, I'd love to see a `orientationLocked` property to check if the orientation of page is locked, this is for several reasons:

- It is better to keep unified with the fullscreen API which gives a `fullscreenEnabled` property
- I'm a developer on 3rd-party script (e.g. ads), we investigated a bunch of users before and found out that once if a device locks its orientation, they have very little chance to unlock it, so we can provide more accurate and suitable content to a locked screen resolution, it would be much help if detection for whether the orientation is locked is possible.

Last, How would it behave if my web app requests orientation locking but is placed in an `<iframe>` element and the parent browsing context is locked in another orientation?

thanks

 2013-4-187:03Charles McCathie Nevile <chaals@yandex-team.ru> д

> Not sure if WHATWG is doing anything, but in the W3C there ishttps://dvcs.w3.org/hg/screen-orientation/raw-file/tip/Overview.html in the Web Apps group (by Mounir, who works on Firefox OS as a day job)
> 
> I expect to know a bit more about the implementation status of this in about a week, when the group has a face to face meeting.
Received on Friday, 3 May 2013 06:30:26 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:58 UTC