From earlier discussions about using DOM in canvas where it's been said that it's best not to use DOM within canvas and load it over the canvas element (iirc). I just wonder if there is an easy way to kind of have like stacked HTML pages on top of each other that act independantly. ik we have z-index to control the visibility layer but it still affects the DOM from the main page. ik there is like a isolation mode property in css but I am not sure if this does what I am talking about.
The goal would be to have a 3D canvas/renderer with a UI overlay on top without worrying about position absolute, one way would potentially be to have a parent container that's 100vw and 100vh positioned absolute on top of the canvas but I was wondering if there are other methods to achieve this result.