| <!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(); |
| |
| window.addEventListener('load', event => { |
| let videos = Array.from(document.getElementsByTagName('video')); |
| let totalCount = videos.length; |
| var count = totalCount; |
| |
| videos.forEach(video => { |
| video.src = findMediaFile('video', 'content/test'); |
| video.requestVideoFrameCallback((now, metadata) => { |
| if (!--count && window.testRunner) |
| testRunner.notifyDone() |
| }); |
| }); |
| }); |
| </script> |
| |
| </head> |
| <body> |
| <video></video> |
| <video></video> |
| <video></video> |
| <video></video> |
| <p>Note: These are SDR videos anyway, this tests the minimal code paths when specifying dynamic-range-limit. |
| FIXME: Add HDR videos. |
| </body> |
| </html> |