navigator.xr
navigator.serviceWorker.register("/sw.js")
A low-level API for rendering 2D and 3D graphics with the GPU on <canvas> , based on OpenGL.
<canvas>
const gl = canvas.getContext("webgl");
Encapsulate elements not visible from the outside, and style them with CSS not affecting the rest of the page.
this.shadowRoot = this.attachShadow({mode: "open"});
Create AR/VR sessions with compatible output devices.
const xr = navigator.xr; const session = await xr?.requestSession("immersive-vr");