5 <title>'poster' aspect ratio test
</title>
6 <script src=video-test.js
></script>
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; }
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");
35 <body onload=
"start()">
36 <video poster=
"content/abe.png" id=wide
></video>
38 <video poster=
"content/abe.png" id=just_right
></video>
39 <video poster=
"content/abe.png" id=no-style
></video>
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>