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

[whatwg] A question about portrait-secondary of screen orientation

From: Chundong Wang <chunwang@microsoft.com>
Date: Fri, 8 Feb 2013 17:53:23 +0000
To: "whatwg@lists.whatwg.org" <whatwg@lists.whatwg.org>
Message-ID: <bdbc8728d2634143a050f9d86543627e@SN2PR03MB078.namprd03.prod.outlook.com>
Hello - Got a question of screen orientation on portrait/landscape.

Let's say we have a device doesn't support portrait-secondary, by spec<http://www.w3.org/TR/screen-orientation/> we should remove it from allow list which is fine. However if web developer specified "portrait" instead of "portrait-primary" for lockOrientation(), which I suppose is a common case, we'll have to expand it to "portrait-primary, portrait-secondary" according spec. In this case the lockOrientation() would fail because orientations isn't a supported orientation set. I don't think it'll satisfy the original purpose of "portrait".

IMHO, we should explain this more detailed.  We could either,

1.       Only expand "portrait"(or "landscape") into allowed orientations, or;

2.       Filter out disallowed orientations from orientation sequence and lock the screen with that list.


Received on Friday, 8 February 2013 17:55:25 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:09:19 UTC