w3c / picture-in-picture

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

Add `:picture-in-picture` CSS pseudo-class #120

Closed beaufortfrancois closed 5 years ago

beaufortfrancois commented 5 years ago

I'd like to add a :picture-in-picture CSS pseudo-class (like Fullscreen API has) to help web developers to customize their video player when video enters and leave Picture-in-Picture.

I hope that a simple CSS pseudo-class would help.

What do you think @jernoble, @scottlow, and @mounirlamouri?


Preview | Diff

scottlow commented 5 years ago

LGTM!