Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / media / video-poster-scale.html
blobf87507d741ae063117d854ba2e878cb3684cd5e9
1 <!DOCTYPE HTML5>
3 <html>
4 <head>
5 <title>'poster' aspect ratio test</title>
6 <script src=video-test.js></script>
7 <style>
8 video {
9 border: 3px solid red;
10 background-color: #ee00ee;
12 #wide { width: 320px; height: 150px; }
13 #tall { width: 150px; height: 320px; }
14 #big { width: 320px; height: 240px; }
15 #skinny { width: 50px; height: 320px; }
16 #short { width: 320px; height: 50px; }
17 #just_right { width: 76px; height: 103px; }
18 </style>
19 <script>
20 var videos;
21 function start()
23 videos = document.getElementsByTagName('video');
24 for (var ndx = 0; ndx < videos.length; ndx++ ) {
25 testExpected("videos[" + ndx + "].getAttribute('poster')", "content/abe.png");
26 testExpected("relativeURL(videos[" + ndx + "].poster)", "content/abe.png");
29 endTest();
31 </script>
32 </head>
35 <body onload="start()">
36 <video poster="content/abe.png" id=wide></video>
37 <br>
38 <video poster="content/abe.png" id=just_right></video>
39 <video poster="content/abe.png" id=no-style></video>
40 <br>
41 <video poster="content/abe.png" id=skinny></video>
42 <video poster="content/abe.png" id=big></video>
43 <video poster="content/abe.png" id=short></video>
44 <br>
45 </body>
46 </html>