steimelchrome / document-pip-explainer

Explainer for the Document Picture-in-Picture API feature
11 stars 2 forks source link

Allow document PiP window to become partly transparent #17

Open tomayac opened 1 year ago

tomayac commented 1 year ago

I just realized in a VC that it would be super neat if the document PiP window had a feature that allowed it to become partly transparent, so that the underlying content is visible. Especially on small screens, there's sometimes no really good place to put the PiP window, so the user ends up moving it around all the time. If the PiP window would let the content under it shine through, this could help.

Not sure if opacity applied at the :root or html level could work for this. If it would, it could be paired with :hover, so the PiP window could go back to opaque mode when hovered.

For security reasons, the content behind the PiP window would of course need to be completely undetectable from the PiP window itself.