no bug - Bumping Firefox l10n changesets r=release a=l10n-bump DONTBUILD CLOSED TREE
[gecko.git] / layout / reftests / webm-video / webm-alpha-capture.html
blob0ded69ccb7ad4247ddbb22f25be9b89436198819
1 <!DOCTYPE HTML>
2 <html class="reftest-wait">
3 <meta charset="utf-8">
4 <title>Test that if a WebM video has an alpha channel, it is displayed correctly when captured.</title>
5 <script>
6 async function runTest() {
7 const v = document.createElement("video");
8 document.body.appendChild(v);
9 const vout = document.createElement("video");
10 document.body.appendChild(vout);
11 v.preload = "auto";
12 v.src = "webm-alpha.webm";
13 await new Promise(r => v.onloadeddata = r);
14 vout.srcObject = v.mozCaptureStream();
15 v.play();
16 await new Promise(r => vout.onloadeddata = r);
17 document.documentElement.removeAttribute("class");
19 </script>
20 <body style="background:grey;" onload="runTest()">
21 </body>
22 </html>