Back to Content

Viewport

files/en-us/web/api/viewport/index.md

latest988 B
Original Source

{{APIRef("Viewport Segments API")}}{{SeeCompatTable}}

The Viewport interface of the {{domxref("Viewport Segments API", "Viewport Segments API", "", "nocode")}} represents the device's {{glossary("viewport")}}.

{{InheritanceDiagram}}

Instance properties

  • {{domxref("Viewport.segments", "segments")}} {{ReadOnlyInline}} {{Experimental_Inline}}
    • : Returns an array of {{domxref("DOMRect")}} objects representing the position and dimensions of each viewport segment within the overall display.

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}

See also