2 <html class=
"reftest-wait">
4 <title>Test that if a WebM video has an alpha channel, it is displayed correctly when captured.
</title>
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
);
12 v
.src
= "webm-alpha.webm";
13 await
new Promise(r
=> v
.onloadeddata
= r
);
14 vout
.srcObject
= v
.mozCaptureStream();
16 await
new Promise(r
=> vout
.onloadeddata
= r
);
17 document
.documentElement
.removeAttribute("class");
20 <body style=
"background:grey;" onload=
"runTest()">