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

Proposal: Supporting fullscreen requests in multi-screen environments. #161

Open
michaelwasserman opened this issue Dec 17, 2019 · 3 comments

Comments

@michaelwasserman
Copy link

I'd like to raise awareness and request feedback for a couple proposals relevant to this working group. Most relevantly, they explore of use cases for requesting fullscreen on a particular display in multi-screen environments, and for potentially opening new windows in the fullscreen state. Thanks in advance for any issues filed, or other discussion/feedback shared!

Screen Enumeration API
This proposal aims to give web developers information about the set of connected physical displays, and considers additional display properties that may be useful beyond the current Screen interface.

Window Placement API
The ability to open and move windows across the full set of connected displays is unstandardized and the current behavior is inconsistent between implementers. This proposal aims to give web developers standard means to manage their web content in modern windowing environments.

@michaelwasserman
Copy link
Author

The Multi-Screen Window Placement spec has evolved significantly, and suggests enhancements for supporting multi-screen devices. I would greatly appreciate feedback and help regarding integrating some of that work in the Fullscreen spec. Here are some pertinent high-level proposals in the spec:

  1. Extend FullscreenOptions with a screen member, to support placing fullscreen content on a specific screen
  2. Extend Element.requestFullscreen() to update a new Window object internal slot that can be used in lieu of transient activation, to support initiating multi-screen experiences

See these inter-related issues filed on CSSOM-View, HTML, and Fullscreen spec repos:

I invite anyone to discuss this topic in a tentative W3C TPAC 2022 breakout session. Thank you!

@foolip
Copy link
Member

foolip commented Aug 29, 2022

@michaelwasserman can you say a bit more about the [[targetScreenFullscreen]] slot? Is this about allowing a longer time to pass between use activation and entering fullscreen, or is it needed to make fullscreen on the right screen possible at all?

@michaelwasserman
Copy link
Author

Sure! It is a transient internal signal set when a site successfully requests fullscreen on a specific screen of a multi-screen device. It can be consumed, in lieu of transient activation, to permit the site to open a "fullscreen companion" popup window on another display. See the explainer, elements of which have been integrated into the spec.

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

No branches or pull requests

2 participants