tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

1276161-1b.html (497B)


      1 <!DOCTYPE html>
      2 <html lang="en">
      3 <meta charset="utf-8">
      4 <title>Test for bug 1276161 - dashed lines in canvas should look different from solid lines</title>
      5 
      6 <canvas id="canvas"></canvas>
      7 
      8 <script>
      9 
     10 var canvas = document.getElementById('canvas');
     11 canvas.width = 200;
     12 canvas.height = 200;
     13 
     14 var ctxx = canvas.getContext('2d');
     15 ctxx.strokeStyle = 'black';
     16 ctxx.setLineDash([2,3]);
     17 ctxx.moveTo(10, 10);
     18 ctxx.lineWidth = 2;
     19 ctxx.lineTo(30, 30);
     20 ctxx.stroke();
     21 ctxx.restore();
     22 
     23 </script>
     24 </body>
     25 </html>