MDN self-hosted library · e01.org

VisualViewport: offsetTop property

CSSOM view API

no runnable cells web-api-instance-property upstream source

CSSOM view API

The offsetTop read-only property of the 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

Browser compatibility