Document picture-in-pictureLimited availability
The document picture-in-picture API creates an always-on-top window from arbitrary HTML content.
Not yet supported in all major browsers — check the table and provide a fallback.
Browser support
DesktopChrome
1–129Not supported
130+Supportedsince Oct 15, 2024
Current: 155Edge
12–129Not supported
130+Supportedsince Oct 17, 2024
Current: 154Firefox
1–150Not supported
151+Supportedsince May 19, 2026
Current: 157Safari
✕Not supportedup to 27
Current: 27MobileChrome Android
✕Not supportedup to 155
Current: 155Firefox Android
✕Not supportedup to 157
Current: 157Safari iOS
✕Not supportedup to 27
Current: 27How to use
Not supported in Safari, Chrome Android, Firefox Android, Safari iOS. Use feature detection below and provide a fallback (or a polyfill) for those browsers.
Example
Full syntax and examples are on MDN: DocumentPictureInPicture.
Feature detection
JS · check before using
if ("DocumentPictureInPicture" in globalThis) {
// DocumentPictureInPicture is available
} else {
// load a polyfill or use a fallback
}Sub-features
Support for each part of the feature (10). The overall table above shows when the whole feature works.
| Sub-feature | Chrome | Edge | Firefox | Safari | Chrome Android | Firefox Android | Safari iOS |
|---|---|---|---|---|---|---|---|
| DocumentPictureInPicture | 116 | 116 | 151 | ✕ | ✕ | ✕ | ✕ |
| DocumentPictureInPicture.enter_event | 116 | 116 | 151 | ✕ | ✕ | ✕ | ✕ |
| DocumentPictureInPicture.requestWindow | 116 | 116 | 151 | ✕ | ✕ | ✕ | ✕ |
| DocumentPictureInPicture.requestWindow.option_disallowReturnToOpener | 124 | 124 | 151 | ✕ | ✕ | ✕ | ✕ |
| DocumentPictureInPicture.requestWindow.option_preferInitialWindowPlacement | 130 | 130 | 151 | ✕ | ✕ | ✕ | ✕ |
| DocumentPictureInPicture.window | 116 | 116 | 151 | ✕ | ✕ | ✕ | ✕ |
| DocumentPictureInPictureEvent | 116 | 116 | 151 | ✕ | ✕ | ✕ | ✕ |
| DocumentPictureInPictureEvent.DocumentPictureInPictureEvent | 116 | 116 | 151 | ✕ | ✕ | ✕ | ✕ |
| DocumentPictureInPictureEvent.window | 116 | 116 | 151 | ✕ | ✕ | ✕ | ✕ |
| Window.documentPictureInPicture | 116 | 116 | 151 | ✕ | ✕ | ✕ | ✕ |