This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 23204 - Add option for orientation
Summary: Add option for orientation
Status: RESOLVED WORKSFORME
Alias: None
Product: WebAppsWG
Classification: Unclassified
Component: Fullscreen (show other bugs)
Version: unspecified
Hardware: PC All
: P2 normal
Target Milestone: ---
Assignee: Anne
QA Contact: public-webapps-bugzilla
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-09-10 22:09 UTC by Anne
Modified: 2014-07-29 10:18 UTC (History)
14 users (show)

See Also:


Attachments

Description Anne 2013-09-10 22:09:59 UTC
In http://lists.w3.org/Archives/Public/public-whatwg-archive/2013Jul/0166.html Kornel suggests:

"""
Since specific, locked screen orientation is mostly needed in games, and  
forced rotation is disruptive to other things on the screen (e.g. moving  
buttons/addressbar to other physical edge of the screen), maybe it should  
be tied to the Fullscreen API?

    element.requestFullscreen({orientation:'landscape',  
autorotation:false})
"""

Seems compelling. What do people think?
Comment 1 Kenneth Rohde Christiansen 2013-09-10 22:43:37 UTC
I have been suggesting this long ago, so I am positive.

I thought this was a better solution that the screen orientation lock currently found in Firefox OS, as it also allows to animation the transition (potentially a scale and rotate, like opening a landscape video in portrait mode Safari).
Comment 2 Lars Knudsen 2013-09-11 06:54:59 UTC
I think this makes a lot of sense - however, it most probably needs to be possible to be a bit more specific regarding the orientation request to have full control over interaction between orientation lock, orientation events and device motion.

A few links to read as background:

Differences between implementations:
http://mobiforge.com/developing/story/html5-mobile-web-device-orientation-events

Some comments I made a long time ago:
http://lists.w3.org/Archives/Public/public-webapps/2013AprJun/0063.html

In general, it would be VERY beneficial for both spec'ers, browser engine implementers and webapps developers if specs like THIS would be done in collaboration between the three groups.  There is a big room for failure here (as we have seen with a recent rush of specs from an org that needed to get things in fast for some device) - but also great potential to change the balance of native vs pure web games (and apps) if done right.
Comment 3 Ian 'Hixie' Hickson 2013-11-26 21:33:46 UTC
See also this e-mail from Tobie:
   http://lists.w3.org/Archives/Public/public-whatwg-archive/2013Sep/0095.html
Comment 4 Mounir Lamouri 2013-11-27 12:12:11 UTC
(In reply to Anne from comment #0)
> In
> http://lists.w3.org/Archives/Public/public-whatwg-archive/2013Jul/0166.html
> Kornel suggests:
> 
> """
> Since specific, locked screen orientation is mostly needed in games, and  
> forced rotation is disruptive to other things on the screen (e.g. moving  
> buttons/addressbar to other physical edge of the screen), maybe it should  
> be tied to the Fullscreen API?
> 
>     element.requestFullscreen({orientation:'landscape',  
> autorotation:false})
> """
> 
> Seems compelling. What do people think?

Sounds a bit early to add the orientation information to the Fullscreen API. If the UX of going fullscreen then changing orientation is terrible, we should probably introduce such a thing but so far I am not sure we got such feedback.
Comment 5 Anne 2014-07-28 13:19:44 UTC
Mounir, this is resolved now, correct?
Comment 6 Mounir Lamouri 2014-07-29 10:15:53 UTC
(In reply to Anne from comment #5)
> Mounir, this is resolved now, correct?

How so? Screen Orientation defines how the Fullscreen API and the Screen Orientation API are related - which is up to the UA. The Fullscreen specification doesn't define how to lock the orientation when going fullscreen. Which is for the best I believe.

Is that a reasonable "FIXED" state to you?
Comment 7 Anne 2014-07-29 10:18:18 UTC
Reasonable WORKSFORME.