DocumentInPicture

Using the bleeding edge Document Picture-in-Picture API that only works in recent Chromium browsers, we can send a portion of page into a picture window using this component.

CSR-only

If we set openPictureWindowOnMount to true, the picture window will automatically open on mount assuming user action was responsible for whatever lead to the mounting of the component.

CSR-only

Note that, you can also specify starting heights, though once the user resizes the window manually, the browser may override what you set.

Inside of this window, window.moveTo() and window.moveBy() are disabled as per spec.

Edit page in GitHub