| <title>changing object-fit values on video elements</title> |
| <script src="../media/media-file.js"></script> |
| testRunner.waitUntilDone(); |
| setSrcByTagName("video", findMediaFile("video", "content/test")); |
| var totalCount = document.getElementsByTagName('video').length; |
| document.addEventListener("canplaythrough", function () { |
| setTimeout(function() { changeStyle(); }, 250); |
| video1.style.objectFit = 'contain'; |
| video2.style.objectFit = 'cover'; |
| video3.style.objectFit = 'fill'; |
| video4.style.objectFit = 'scale-down'; |
| setTimeout(function() { testRunner.notifyDone(); }, 250); |
| <video id="video1" style="object-fit:fill;"></video> |
| <video id="video2" style="object-fit:contain;"></video> |
| <video id="video3" style="object-fit:cover;"></video> |
| <video id="video4" style="object-fit:none;"></video> |