Firefox Tomorrow

web api instance property

XRViewport: height property

View on MDN ↗

Secure context

The read-only 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 width and the origin point given by x and y, this defines the area within which rendered content will be drawn.

Value

The viewport’s height in pixels.

Examples

See the main XRViewport page for examples.

Specifications

SpecificationsStandards references are available on the canonical MDN page.

Browser compatibility

Browser compatibilityCompatibility data is available on the canonical MDN page.