Viewport
Viewport Segments API
Viewport Segments API
The Viewport interface of the Viewport Segments API represents the device's viewport.
Instance properties
- segments
- : Returns an array of DOMRect objects representing the position and dimensions of each viewport segment within the overall display.
Specifications
Browser compatibility
See also
- Using the Viewport Segments API
- Viewport Segments API
- CSSOM view API
- Device Posture API
- Origin trial for Foldable APIs via developer.chrome.com (2024)