xr-overlay
ExperimentalAn experimental pseudo-class that targets the root element of a 'DOM Overlay' when a web page is being viewed in an Immersive AR or VR environment.
Quick example
:xr-overlay {
/* ensures the UI is readable when overlaid on top of a 3D scene */
background-color: rgba(0, 0, 0, 0.7);
color: white;
} xr-overlay Browser Support
Limited availability 79% global usage
This feature is not Baseline because it does not work in some of the most widely-used browsers.
Not ready for production without a fallback.
83+
83+