Firefox 151 brings Document Picture-in-Picture to desktop

Desktop Firefox can now use the Document Picture-in-Picture API, which the Firefox 151 release notes list as newly available. The API lets a page put arbitrary HTML into a window that stays on top of other windows, rather than limiting the floating view to a video element alone.

Firefox joins the set of browsers shipping the feature, but Safari still does not support it, so pages relying on the API need a fallback for Apple's browser. Developers can read the details in the Document Picture-in-Picture API documentation.