Back to Content

VisualViewport: width property

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

latest314 B
Original Source

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

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

Value

A double.

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}