WebXR DOM Overlays Module
Jump to navigation
Jump to search
Status | WD |
---|---|
Last Updated | 31 August 2021 |
Editor(s) | Klaus Weidner |
CG or WG? | WG |
The WebXR DOM Overlays module expands the WebXR Device API with a mechanism for showing interactive 2D web content during an immersive WebXR session. When the feature is enabled, the user agent will display the content of a single DOM element as a transparent-background 2D rectangle.
WebIDL[edit]
partial interface mixin GlobalEventHandlers {
attribute EventHandler onbeforexrselect;
};
partial dictionary XRSessionInit {
XRDOMOverlayInit? domOverlay;
};
partial interface XRSession {
readonly attribute XRDOMOverlayState? domOverlayState;
};
dictionary XRDOMOverlayInit {
required Element root;
};
enum XRDOMOverlayType {
"screen",
"floating",
"head-locked"
};
dictionary XRDOMOverlayState {
XRDOMOverlayType type;
};