fullscreen icon indicating copy to clipboard operation
fullscreen copied to clipboard

Pre-apply orientation lock via FullscreenOptions

Open marcoscaceres opened this issue 3 years ago • 1 comments

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 #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 avatar Nov 01 '22 03:11 marcoscaceres

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

foolip avatar May 17 '24 07:05 foolip