Back to Content

VisualViewport: offsetLeft property

files/en-us/web/api/visualviewport/offsetleft/index.md

latest378 B
Original Source

{{APIRef("CSSOM view API")}}

The offsetLeft read-only property of the {{domxref("VisualViewport")}} interface returns the offset of the left edge of the visual viewport from the left edge of the layout viewport in CSS pixels, or 0 if current document is not fully active.

Value

A double.

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}