This is a basic demo of the proposed Multi-Screen Window Placement APIs.
- Visualize the set of connected displays
- Open or move a popup window onto any connected display
- Request fullscreen on any connected display
- Swap fullscreen from one display to another
Run the demo at https://michaelwasserman.github.io/window-placement-demo
- Use Chrome 93+ (which supports the Multi-Screen Window Placement origin trial)
- Or enable chrome://flags#enable-experimental-web-platform-features
- Or run chrome --enable-blink-features=WindowPlacement
[Optional] Host this demo locally and run it:
$ git clone https://github.com/michaelwasserman/window-placement-demo.git
$ cd window-placement-demo
$ python -m SimpleHTTPServer &
$ chrome --enable-blink-features=WindowPlacement -- "http://localhost:8000"
To simulate multiple displays with linux-chromeos builds, use --ash-host-window-bounds:
$ out/cros_Default/chrome --enable-blink-features=WindowPlacement --ash-host-window-bounds=1280x960,1285+0-1280x960 -- "http://localhost:8000"
Demo screen capture: linux-chromeos with two virtual displays draws a screen-space diagram and opens windows on both displays