Bug 1915045 Ensure decode tasks are scheduled on BufferingState::Enter() r=media...
[gecko.git] / dom / canvas / test / reftest / 1177726-text-stroke-bounds.html
blob1f459ce0b6f5e4dfb3c7363824f2803f16840694
1 <!DOCTYPE HTML>
2 <html>
3 <head>
4 <meta charset="utf-8">
5 <title>Testcase for bug 1177726</title>
6 </head>
7 <body>
9 <canvas id="c" width="400" height="200">
10 <p>No canvas.</p>
11 </canvas>
13 <script>
14 var canvas = document.getElementsByTagName("canvas")[0];
15 var ctx = canvas.getContext('2d');
17 ctx.shadowColor = 'white';
18 ctx.shadowOffsetX = 5;
19 ctx.shadowOffsetY = 5;
20 ctx.shadowBlur = 0;
21 ctx.font = "120px 'Helvetica'";
22 ctx.lineWidth = 15;
23 ctx.lineJoin = "round";
25 ctx.strokeText("Ehsan", 20, 110);
26 </script>
27 </body>
28 </html>