Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pre-apply orientation lock via FullscreenOptions #207

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

marcoscaceres
Copy link
Member

@marcoscaceres marcoscaceres commented Nov 1, 2022

Seeking feedback on this draft proposal from implementers and community at large.

The potential advantages with this proposal are numerous:

  • Potentially smoother visual transition when switching to fullscreen.
  • Releasing the orientation is explicitly tied to exiting fullscreen (per Exiting full screen should unlock screen orientation #202)
  • Easier to use than Screen Orientation Lock API, while also working together with it (via events, and also allowing orientation changes after going fullscreen).

Usage example:

document.documentElement.requestFullscreen({ orientation: "landscape" });

Addresses #186

  • At least two implementers are interested (and none opposed):
  • Tests are written and can be reviewed and commented upon at:
  • Implementation bugs are filed:
    • Chromium: …
    • Gecko: …
    • WebKit: …
  • MDN issue is filed: …

(See WHATWG Working Mode: Changes for more details.)


Preview | Diff

@marcoscaceres marcoscaceres changed the title DRAFT PROPOSAL: Pre-apply orientation lock via FullscreenOptions Pre-apply orientation lock via FullscreenOptions Nov 28, 2022
@foolip
Copy link
Member

foolip commented May 17, 2024

@marcoscaceres is this something you'd still like to pursue? Is there implementer interest?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants