Back to Content

XRViewport: height property

files/en-us/web/api/xrviewport/height/index.md

latest651 B
Original Source

{{APIRef("WebXR Device API")}}{{SecureContext_Header}}

The read-only {{domxref("XRViewport")}} property height specifies the height, in pixels, of the viewport onto the drawing surface within which the WebXR view is to be rendered. Along with {{domxref("XRViewport.width", "width")}} and the origin point given by {{domxref("XRViewport.x", "x")}} and {{domxref("XRViewport.y", "y")}}, this defines the area within which rendered content will be drawn.

Value

The viewport's height in pixels.

Examples

See the main {{domxref("XRViewport")}} page for examples.

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}