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

[cssom-view] Support for multi-screen devices #7642

Open
michaelwasserman opened this issue Aug 23, 2022 · 2 comments
Open

[cssom-view] Support for multi-screen devices #7642

michaelwasserman opened this issue Aug 23, 2022 · 2 comments

Comments

@michaelwasserman
Copy link
Member

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

  1. Extend the Screen interface with an onchange EventHandler and isExtended boolean.
  2. Refine attribute and method definitions for Window.screenX|Left|Y|Top and Window.moveTo|By().
  3. Refine concepts to define web-exposed screen information for devices with multiple screens.
  4. Define a Window.getScreenDetails() method and ScreenDetails and ScreenDetailed interfaces to supply multi-screen information.

I invite anyone to discuss this topic in a tentative W3C TPAC 2022 breakout session, and I will file similar issues on HTML and Fullscreen specs soon. Thank you!

@michaelwasserman
Copy link
Member Author

@marcoscaceres
Copy link
Member

Just noting this also affects (or would be relied upon) by the screen orientation spec: the screen orientation spec is also needing to be notified when a window gets dragged to another screen, which would cause the values to be updated (orientation type and angle).

It would be nice to have a single model that watches for windows moving from one screen to another and then having the right things/events happen.

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

No branches or pull requests

3 participants