tor-browser

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

2d.reset.render.miter_limit-expected.html (742B)


      1 <!DOCTYPE html>
      2 <!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. -->
      3 <meta charset="UTF-8">
      4 <title>Canvas test: 2d.reset.render.miter_limit</title>
      5 <h1>2d.reset.render.miter_limit</h1>
      6 <p class="desc">check that the lines are correctly rendered with the default miter limit after reset</p>
      7 <canvas id="canvas" width="400" height="400">
      8  <p class="fallback">FAIL (fallback content)</p>
      9 </canvas>
     10 <script>
     11  const canvas = document.getElementById("canvas");
     12  const ctx = canvas.getContext('2d');
     13 
     14  ctx.lineWidth = 10;
     15 
     16  ctx.beginPath();
     17  ctx.moveTo(0, 100);
     18  for (let i = 0; i < 24; i++) {
     19    const dy = i % 2 === 0 ? 25 : -25;
     20    ctx.lineTo(Math.pow(i, 1.5) * 2, 75 + dy);
     21  }
     22  ctx.stroke();
     23 </script>