mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-27 12:15:33 +00:00
1cf2f409ec
--HG-- extra : rebase_source : dcafd327c98d1da7076f06c86b23eb7d5dd1edcb
17 lines
506 B
HTML
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>
|