| This tests that entering and leaving Picture-in-Picture toggles CSS selector. |
| RUN(internals.settings.setAllowsPictureInPictureMediaPlayback(true)) |
| RUN(internals.setMockVideoPresentationModeEnabled(true)) |
| RUN(video.src = findMediaFile("video", "../content/test")) |
| EXPECTED (getComputedStyle(video).color == 'rgb(0, 0, 255)') OK |
| EVENT(enterpictureinpicture) |
| EXPECTED (getComputedStyle(video).color == 'rgb(0, 255, 0)') OK |
| EVENT(leavepictureinpicture) |
| EXPECTED (getComputedStyle(video).color == 'rgb(0, 0, 255)') OK |