files/en-us/web/api/xrcompositionlayer/index.md
{{securecontext_header}}{{APIRef("WebXR Device API")}}{{SeeCompatTable}}
The XRCompositionLayer interface of the WebXR Device API is a base class that defines a set of common properties and behaviors for WebXR layer types. It is not constructable on its own.
Several layer types inherit from XRCompositionLayer:
XRCompositionLayer itself inherits from the general {{domxref("XRLayer")}} class (which inherits from {{domxref("EventTarget")}}).
{{InheritanceDiagram}}
Inherits methods from its parent, {{domxref("EventTarget")}}.
{{Specifications}}
{{Compat}}