VisualViewport: width property

The width read-only property of the VisualViewport interface returns the width of the visual viewport, in CSS pixels.

Value

A double.

Specifications

Specification
CSSOM View Module
# dom-visualviewport-width

Browser compatibility

BCD tables only load in the browser