Window Segments Enumeration API

September 27, 2021 ยท View on GitHub

Status: This explainer has been deprecated in favor of the Segments Property Explainer under the Visual Viewport API spec.


This repository proposes a JavaScript API that will help web developers effectively lay content out in a browser window that spans multiple displays or across the fold on foldable devices by providing the geometry of the available display regions.

The EXPLAINER.md file highlights the motivation and the proposed API's syntax. Please take a look and if you have any feedback, thoughts or comments we'd love to hear them and opening an issue on this repo is a great start.

NameLink
Screen Fold APIExplainer, Unofficial Draft Spec
Multi-Screen Window Placement APIExplainer, Draft Community Group Report
Visual Viewport APIDraft Community Group Report, MDN