w3c / picture-in-picture

Picture-in-Picture (PiP)
https://w3c.github.io/picture-in-picture
Other
311 stars 39 forks source link

Interaction with <video> element styles #81

Closed ewoerner closed 5 years ago

ewoerner commented 6 years ago

Following example code:

// example 1
video.style.display = 'none';
video.requestPictureInPicture();

// example 2
video.style.width = '10000px';
video.style.height = '10000px';
video.requestPictureInPicture();

I guess the expected outcome is that the style of the video element has no influence at all on how the video element is presented in picture-in-picture mode. Should this be clarified in the spec?

beaufortfrancois commented 6 years ago

You're right. It has no incidence on how video is presented in Picture-in-Picture. Let me think about how to word this in the spec.

FYI @mounirlamouri

beaufortfrancois commented 6 years ago

See https://github.com/WICG/picture-in-picture/pull/83