Back to Content

VisualViewport: offsetTop property

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

latest375 B
Original Source

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

The offsetTop read-only property of the {{domxref("VisualViewport")}} interface returns the offset of the top edge of the visual viewport from the top 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}}