Bug 1946184 - Fix computing the CSD margin right after calling HideWindowChrome(...
[gecko.git] / layout / reftests / webm-video / poster-11.html
blobc8bc43cd6644917db6f19c5c63c91e4a4f61b51f
1 <!DOCTYPE HTML>
2 <html class="reftest-wait">
3 <!-- Test: Create video, load. Add poster frame, load again, poster should show. -->
4 <script>
5 function runTest() {
6 var v = document.createElement('video');
8 var endTest = function() {
9 setTimeout(function(){document.documentElement.className = '';}, 0);
10 };
12 var addPoster = function() {
13 v.removeEventListener('loadeddata', addPoster);
14 v.poster = "blue140x100.png";
15 v.addEventListener('loadeddata', endTest);
16 v.load();
19 v.addEventListener('loadeddata', addPoster);
20 v.id = 'v';
21 v.src = "black140x100.webm";
22 v.preload = "auto";
23 document.body.appendChild(v);
26 </script>
27 <body style="background:white;" onload="runTest();">
28 </body>
29 </html>