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

Side by Side Diff: LayoutTests/fast/css/object-fit-video-poster-expected.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 unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE html>
2
3 <html>
4 <head>
5 <title>object-fit on video poster</title>
6 <style type="text/css">
7 .group > div {
8 display: inline-block;
9 overflow: hidden;
10 width: 72px;
11 height: 72px;
12 margin: 2px 10px;
13 border: 1px solid black;
14 background-color: gray;
15 }
16
17 .group > * > * { display: block; }
18 .group > *:nth-child(1) * { width:100%; height:100%; }
19 .group > *:nth-child(2) * { width:100%; margin-top:25%; }
20 .group > *:nth-child(3) * { height:100%; margin-left:-50%; }
21 .group > *:nth-child(4) * { width:288px; margin-left:-108px; margin-top:-3 6px; }
22 .group > *:nth-child(5) * { width:100%; margin-top:25%; }
23 .group > *:nth-child(6) * { width:100%; margin-top:25%; }
24 .group > *:nth-child(7) * { width:100%; height:100%; }
25 </style>
26 </head>
27 <body>
28
29 <div class="group">
30 <!-- Note about the first video here: There's no way to unlock a video fro m its
31 aspect ratio without using object-fit:fill, so we have to use it here as well
32 as in the test file. In order to actually being able to detect failur es, use a
33 different background color. -->
34 <div style="background:salmon;"><video poster="resources/circles-landscape .png" style="object-fit:fill;"></video></div>
35 <div><video poster="resources/circles-landscape.png"></video></div>
36 <div><video poster="resources/circles-landscape.png"></video></div>
37 <div><video poster="resources/circles-landscape.png"></video></div>
38 <div><video poster="resources/circles-landscape.png"></video></div>
39 <div><video poster="resources/circles-landscape.png"></video></div>
40 <div><video poster="resources/circles-landscape.png" style="width:100%; he ight:auto; margin:25% 0 0;"></video></div> <!-- default is contain for video -->
41 </div>
42
43 </body>
44 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698