layout/reftests/webm-video/encoded-aspect-ratio-1.html

Thu, 15 Jan 2015 21:03:48 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 21:03:48 +0100
branch
TOR_BUG_9701
changeset 11
deefc01c0e14
permissions
-rw-r--r--

Integrate friendly tips from Tor colleagues to make (or not) 4.5 alpha 3;
This includes removal of overloaded (but unused) methods, and addition of
a overlooked call to DataStruct::SetData(nsISupports, uint32_t, bool.)

michael@0 1 <!DOCTYPE HTML>
michael@0 2 <html>
michael@0 3 <body style="background:white;">
michael@0 4 <!--
michael@0 5 Test if video displays correctly with a 3:2 aspect ratio.
michael@0 6 It should display at w=150 h=100.
michael@0 7 On some Linux systems, the scaling to preserve the aspect ratio can sample
michael@0 8 the pixels outside visible region. This results in a thin grey line down
michael@0 9 some sides of the scaled picture. We add red bars over the edges to
michael@0 10 overwrite such happenings, to make the test reliable.
michael@0 11 -->
michael@0 12 <video src="black100x100-aspect3to2.webm"
michael@0 13 style="position:absolute; left: 10px; top: 10px; z-index: 1;">
michael@0 14 </video>
michael@0 15
michael@0 16 <!-- Left side vertical. -->
michael@0 17 <div style="position: absolute; left: 9px; top: 9px; width: 2px; height: 102px; z-index: 2; background: red;"></div>
michael@0 18
michael@0 19 <!-- Right side vertical. -->
michael@0 20 <div style="position: absolute; left: 159px; top: 9px; width: 2px; height: 102px; z-index: 2; background: red;"></div>
michael@0 21
michael@0 22 <!-- Top horizontal bar. -->
michael@0 23 <div style="position: absolute; left: 9px; top: 9px; width: 152px; height: 2px; z-index: 2; background: red;"></div>
michael@0 24
michael@0 25 <!-- Bottom horizontal bar. -->
michael@0 26 <div style="position: absolute; left: 9px; top: 109px; width: 152px; height: 2px; z-index: 2; background: red;"></div>
michael@0 27
michael@0 28 </body>
michael@0 29 </html>

mercurial