4 <title>object-fit, video
</title>
9 border:
1px solid blue;
10 background-color: gray;
14 <script src=../media-file.js
></script>
16 if (window
.testRunner
)
17 testRunner
.waitUntilDone();
21 setSrcByTagName("video", findMediaFile("video", "../content/test"));
23 var totalCount
= document
.getElementsByTagName('video').length
;
24 var count
= totalCount
;
25 document
.addEventListener("canplaythrough", function () {
27 if (window
.testRunner
)
28 setTimeout(function() { testRunner
.notifyDone(); }, totalCount
* 150);
35 <body onload=
"init();">
36 <video style=
"object-fit: fill"></video>
37 <video style=
"object-fit: contain"></video>
38 <video style=
"object-fit: cover"></video>
39 <video style=
"object-fit: none"></video>
40 <video style=
"object-fit: scale-down"></video>