<!DOCTYPE html>
<html>
<head>
<title>object-fit, video</title>
<style>
video {
width: 120px;
height: 120px;
border: 1px solid blue;
background-color: gray;
margin: 10px;
}
</style>
<script src=media-file.js></script>
<script>
if (window.testRunner)
testRunner.waitUntilDone();
function init()
{
var videosPresented = allVideosPresentedPromise();
setSrcByTagName("video", "content/test.ogv");
videosPresented.then(() => testRunner.notifyDone());
}
</script>
</head>
<body onload="init();">
<video style="object-fit: fill"></video>
<video style="object-fit: contain"></video>
<video style="object-fit: cover"></video>
<video style="object-fit: none"></video>
<video style="object-fit: scale-down"></video>
</body>
</html>