Viewport Segments API
The Viewport interface of the Viewport Segments API represents the device's viewport.
Instance properties
- Viewport.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)
来源:MDN Web Docs / Mozilla 贡献者 · 作者与贡献记录 · CC BY-SA 2.5。离线整理了版式、链接和媒体显示。
