ProjectVisBug icon indicating copy to clipboard operation
ProjectVisBug copied to clipboard

Idea: Attach VisBug to ShadowRoot

Open jogibear9988 opened this issue 1 year ago • 5 comments

Idea:

As adding visbug to a page could lead to side effects, wouldn't it be preferable to add it to it's own shadowroot?

Like:

      let sr = document.body.attachShadow({mode: 'open'});
      sr.innerHTML = "<slot></slot>"

And after this the VisBug overlays could be added to the ShadowRoot, without affecting the real Dom?

jogibear9988 avatar Aug 27 '24 09:08 jogibear9988