The read-only PictureInPictureWindow
property width
returns the width of the floating video window in pixels.
Syntax
let width = pictureInPictureWindow.width;
Value
An integer value indicating the width of the floating video window in pixels. This property is read-only, and has no default value.
Specification
Specification | Status | Comment |
---|---|---|
UnknownThe definition of 'PictureInPicture.width' in that specification. | Unknown | Initial definition |
Browser compatibility
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.
No compatibility data found. Please contribute data for "api.PictureInPictureWindow.width" (depth: 1) to the MDN compatibility data repository.
See also
PictureInPictureWindow.width by Mozilla Contributors is licensed under CC-BY-SA 2.5.