Index: LayoutTests/media/video-object-fit.html |
diff --git a/LayoutTests/media/video-zoom.html b/LayoutTests/media/video-object-fit.html |
similarity index 56% |
copy from LayoutTests/media/video-zoom.html |
copy to LayoutTests/media/video-object-fit.html |
index 2fe261d2e32aa6ee2a34b2dec81480cc9fbfeeff..a0b385ea5895a81c3eccf1b15b6a3af105968006 100644 |
--- a/LayoutTests/media/video-zoom.html |
+++ b/LayoutTests/media/video-object-fit.html |
@@ -1,10 +1,20 @@ |
+<!DOCTYPE html> |
<html> |
-<head> |
- <style> video { zoom: 150%; border: 3px solid red; } </style> |
+ <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.internals) |
- window.internals.settings.setMockScrollbarsEnabled(true); |
+ if (window.testRunner) |
+ testRunner.waitUntilDone(); |
function init() |
{ |
@@ -20,9 +30,8 @@ |
}, true); |
if (window.testRunner) { |
- testRunner.waitUntilDone(); |
- setTimeout(function() { |
- document.body.appendChild(document.createTextNode('FAIL')); |
+ setTimeout(function() { |
+ document.body.appendChild(document.createTextNode('FAIL')); |
if (window.testRunner) |
testRunner.notifyDone(); |
}, 1500); |
@@ -30,11 +39,12 @@ |
} |
</script> |
-</head> |
-<body onload="init();"> |
- <p>150% zoom, with width and height attributes </p> |
- <video width=320 height=240></video><br> |
- <p>150% zoom, without width and height attributes </p> |
- <video></video><br> |
-</body> |
+ </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> |