VisualViewport.offsetleft

Experimental

This is an experimental technology
Check the Browser compatibility table carefully before using this in production.

The offsetLeft read-only property of the VisualViewport interface returns the offset of the left edge of the visual viewport from the left edge of the layout viewport in CSS pixels.

Syntax

var offsetLeft = VisualViewport.offsetLeft

Value

A double.

Specifications

Specification
Visual Viewport API
# dom-visualviewport-offsetleft

Browser compatibility

BCD tables only load in the browser