# Day 17: the :picture-in-picture pseudo-class

DevFeed: [Day 17: the :picture-in-picture pseudo-class](<https://devfeed.tech/articles/day-17-the-picture-in-picture-pseudo-class-52183.md>)

Original publisher: [Read original article](<https://www.matuzo.at/blog/2022/100daysof-day17>)

Author: Manuel Matuzović

Published: 2022-10-18T00:00:00Z

Content type: tutorial

Language: en

Sources: [Manuel Matuzović](<https://devfeed.tech/sources/manuel-matuzovic-blog.md>)

Topics: [picture-in-picture](<https://devfeed.tech/topics/picture-in-picture.md>), [CSS](<https://devfeed.tech/topics/css.md>), [browser](<https://devfeed.tech/topics/browser.md>), [Web Development](<https://devfeed.tech/topics/web-development.md>)

Tags: [browsers](<https://devfeed.tech/tags/browsers.md>), [chrome](<https://devfeed.tech/tags/chrome.md>), [css](<https://devfeed.tech/tags/css.md>), [edge](<https://devfeed.tech/tags/edge.md>), [firefox](<https://devfeed.tech/tags/firefox.md>), [has](<https://devfeed.tech/tags/has.md>), [opera](<https://devfeed.tech/tags/opera.md>), [picture-in-picture](<https://devfeed.tech/tags/picture-in-picture.md>), [safari](<https://devfeed.tech/tags/safari.md>), [tests](<https://devfeed.tech/tags/tests.md>)

## AI overview

A CSS tutorial examines the :picture-in-picture pseudo-class for styling video elements in picture-in-picture mode. It describes browser support for picture-in-picture and reports that, based on the author's tests, Safari was the only listed browser supporting the pseudo-class.

## Source excerpt

You can use the :picture-in-picture pseudo-class to style an element, usually a <video>, which is currently in picture-in-picture mode (PIP). Clicking the following button puts the video in picture-in-picture mode in supporting browsers (Chrome, Edge, Safari, Opera). Firefox doesn't support the API, but you can right-click the video and select "Watch in Picture-in-Picture". Toggle PIP Sorry, your browser doesn't support embedded videos. When the video is playing in PIP mode, the placeholder for the video switches to the :picture-in-picture state. Contrary to the information in the support table on MDN, none of the browsers, except for Safari, supports the pseudo-class. At least, according to my tests. :picture-in-picture { opacity: 0.3; filter: blur(5px); } Here's how the video placeholder, which by default is not blurred and has a black background color, looks like in Safari. My blog doesn't support comments yet, but you can reply via blog@matuzo.at.