bug1423850-canvas-video-rotated-ref.html (516B)
1 <!DOCTYPE html> 2 <html class="reftest-wait"> 3 <head><script> 4 function done() { 5 let video = document.querySelector("video"); 6 let canvas = document.querySelector("canvas"); 7 let context = canvas.getContext("2d"); 8 context.drawImage(video, 30, 50, video.videoWidth, video.videoHeight); 9 document.documentElement.removeAttribute("class"); 10 } 11 </script></head> 12 <body bgcolor="gray"> 13 <video src="video_rotated.mp4" onended="done()" autoplay="true"></video> 14 <canvas width="60" height="100"></canvas> 15 </body> 16 </html>