blob: f44982cef0e764a16ca735f12f2a6bd2b76ddba9 [file] [log] [blame]
<!DOCTYPE html>
<title>::backdrop for a fullscreen video element</title>
<script src="../trusted-click.js"></script>
<style>
video::backdrop {
background: green;
}
/* A video element in fullscreen will always get controls.
::-webkit-media-controls shouldn't be exposed to the web, but it is, so abuse
it to hide the controls and simplify the test expectations. */
video::-webkit-media-controls {
display: none;
}
</style>
<video></video>
<script>
testRunner.waitUntilDone();
var t = { step_func: func => func() };
trusted_request(t, document.querySelector("video"));
document.addEventListener("fullscreenchange", function() {
testRunner.notifyDone();
});
</script>