| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <head> | 2 <head> |
| 3 <title>Ensure correct behavior of drawImage video elements.</title> | 3 <title>Ensure correct behavior of drawImage video elements.</title> |
| 4 <style trpe="text/css"> | 4 <style type="text/css"> |
| 5 video { | 5 video { |
| 6 display: none; | 6 display: none; |
| 7 } | 7 } |
| 8 </style> | 8 </style> |
| 9 </head> | 9 </head> |
| 10 <body> | 10 <body> |
| 11 <canvas id="canvas"></canvas> | 11 <canvas id="canvas"></canvas> |
| 12 <video id="video"> | 12 <video id="video"> |
| 13 <source src="resources/canvas_video.mp4" type='video/mp4' /> | 13 <source src="resources/canvas_video.mp4" type='video/mp4' /> |
| 14 <source src="resources/canvas_video.webm" type='video/webm' /> | 14 <source src="resources/canvas_video.webm" type='video/webm' /> |
| (...skipping 21 matching lines...) Expand all Loading... |
| 36 ctx.fillRect(0, 0, length, length); | 36 ctx.fillRect(0, 0, length, length); |
| 37 ctx.drawImage(video, 0, 0); | 37 ctx.drawImage(video, 0, 0); |
| 38 ctx.globalAlpha = 0.5; | 38 ctx.globalAlpha = 0.5; |
| 39 ctx.drawImage(video, 0, 60); | 39 ctx.drawImage(video, 0, 60); |
| 40 if (window.testRunner) | 40 if (window.testRunner) |
| 41 testRunner.notifyDone(); | 41 testRunner.notifyDone(); |
| 42 } | 42 } |
| 43 </script> | 43 </script> |
| 44 </body> | 44 </body> |
| 45 </html> | 45 </html> |
| OLD | NEW |