OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <title>Ensure correct behavior of createPattern with video elements.</title> | 3 <title>Ensure correct behavior of createPattern with 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 20 matching lines...) Expand all Loading... |
35 ctx.fillStyle = "blue"; | 35 ctx.fillStyle = "blue"; |
36 ctx.fillRect(0, 0, length, length); | 36 ctx.fillRect(0, 0, length, length); |
37 ctx.fillStyle = ctx.createPattern(video, "no-repeat"); | 37 ctx.fillStyle = ctx.createPattern(video, "no-repeat"); |
38 ctx.fillRect(0, 0, length, length); | 38 ctx.fillRect(0, 0, length, length); |
39 if (window.testRunner) | 39 if (window.testRunner) |
40 testRunner.notifyDone(); | 40 testRunner.notifyDone(); |
41 } | 41 } |
42 </script> | 42 </script> |
43 </body> | 43 </body> |
44 </html> | 44 </html> |
OLD | NEW |