This feature is not Baseline because it does not work in some of the most widely-used browsers.
The read-only width property of the PictureInPictureWindow interface returns the width of the floating video window in pixels.
An integer value indicating the width of the floating video window in pixels if the Picture-in-Picture window is open. Otherwise, it returns 0.
| Specification |
|---|
| Picture-in-Picture> # dom-pictureinpicturewindow-width> |
| Desktop | Mobile | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Chrome | Edge | Firefox | Opera | Safari | Chrome Android | Firefox for Android | Opera Android | Safari on IOS | Samsung Internet | WebView Android | WebView on iOS | |
width |
69 | 79 | No | 56 | 13.1 | 105 | No | 72 | 13.4 | 20.0 | No | 13.4 |
© 2005–2025 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/PictureInPictureWindow/width