Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(284)

Unified Diff: LayoutTests/media/video-object-fit.html

Issue 22482004: Add support for the object-fit CSS property. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Oops, sorry! Forgot to update UseCounter.cpp Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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>
- &nbsp;<video width=320 height=240></video><br>
- <p>150% zoom, without width and height attributes </p>
- &nbsp;<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>

Powered by Google App Engine
This is Rietveld 408576698