gecko-dev/layout/reftests/ogg-video/canvas-1b.html
2009-01-16 20:57:37 +13:00

17 lines
506 B
HTML

<!DOCTYPE HTML>
<html class="reftest-wait">
<body>
<canvas id="canvas" width="200" height="200"></canvas>
<script>
function draw() {
var video = document.getElementById("video");
var canvas = document.getElementById("canvas");
var ctx = canvas.getContext("2d");
ctx.drawImage(video, 0, 0, video.videoWidth, video.videoHeight);
document.documentElement.removeAttribute("class");
}
</script>
<video id="video" src="black140x100.ogv" onloadeddata="draw()" style="opacity:0"></video>
</body>
</html>