:picture-in-picture
Limited availability94% of users
A selector that matches a media element (like <video>) when it is currently being played in a floating 'picture-in-picture' window.
What's modern
From web-features, MDN's browser data and our snippets, checked dailyComingNot in yet, so not every major browser supports it.
See how modern your own CSS is.Check your CSS →
Quick example
video:picture-in-picture {
/* Hide some controls or change opacity when in PiP mode */
box-shadow: none;
background: transparent;
}:picture-in-picture browser support
BaselineLimited availabilityThis feature is not Baseline because it does not work in some of the most widely-used browsers.Not ready for production without a fallback.
Usage94%of people can use this6% use a browser without it.
Browsers
110+
153+
13.1+
110+Mobile
110+Android
13.4+iOS