tor-browser

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

2d.layer.ctm.setTransform-expected.html (661B)


      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.layer.ctm.setTransform</title>
      5 <h1>2d.layer.ctm.setTransform</h1>
      6 <p class="desc">Tests setTransform inside layers.</p>
      7 <canvas id="canvas" width="100" height="50">
      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.translate(80, 0);
     15  ctx.fillStyle = 'green';
     16  ctx.fillRect(0, 0, 20, 20);
     17 
     18  ctx.setTransform(4, 0, 0, 2, 20, 10);
     19  ctx.fillStyle = 'blue';
     20  ctx.fillRect(0, 0, 10, 10);
     21 </script>