web api interface
Viewport
Limited availability
The Viewport interface of the Viewport Segments API represents the device’s viewport.
Instance properties
segmentsRead only Experimental- : Returns an array of
DOMRectobjects representing the position and dimensions of each viewport segment within the overall display.
- : Returns an array of
Specifications
SpecificationsStandards references are available on the canonical MDN page.
Browser compatibility
Browser compatibilityCompatibility data is available on the canonical MDN page.
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)