screen-share / element-capture

https://screen-share.github.io/element-capture/
19 stars 6 forks source link

Special RestrictonTarget.fromElement() behavior for elements associated with a shadowRoot? #30

Open markafoltz opened 1 year ago

markafoltz commented 1 year ago

Elements attached to a shadowRoot either are not rendered at all or are rendered in special circumstances (fullscreen, picture-in-picture). If a developer tries to restrict to an element attached to a shadowRoot, what should happen?

This may "just work" if the restriction conditions apply consistently to shadow DOM elements and the underlying implementation works as intended (i.e, it is able to capture a fullscreen element). But some investigation may be needed to confirm.