---
title: XRSubImage.viewport
slug: Web/API/XRSubImage/viewport
tags:
  - API
  - Property
  - Reference
  - VR
  - WebXR
  - WebXR API
  - WebXR Device API
  - XR
browser-compat: api.XRSubImage.viewport
---
{{APIRef("WebXR Device API")}}

The read-only **`viewport`** property of the {{domxref("XRSubImage")}} interface represents the {{domxref("XRViewport")}} that is used when rendering the sub image.

## Value

An {{domxref("XRViewport")}}.

## Specifications

{{Specifications}}

## Browser compatibility

{{Compat}}

## See also

- {{domxref("XRViewport")}}
