4 <title>changing object-fit values on video elements
</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
;
26 if (window
.testRunner
) {
27 document
.addEventListener("canplaythrough", function () {
29 setTimeout(function() { testRunner
.notifyDone(); }, 500);
36 <body onload=
"init();">
37 <video id=
"video1" style=
"object-fit:contain;"></video>
38 <video id=
"video2" style=
"object-fit:cover;"></video>
39 <video id=
"video3" style=
"object-fit:fill;"></video>
40 <video id=
"video4" style=
"object-fit:scale-down;"></video>