tor-browser

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

2d.layer.clearRect.partial-expected.html (731B)


      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.clearRect.partial</title>
      5 <h1>2d.layer.clearRect.partial</h1>
      6 <p class="desc">clearRect inside a layer can clear a portion of the layer content.</p>
      7 <canvas id="canvas" width="100" height="100">
      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.fillStyle = 'blue';
     15  ctx.fillRect(10, 10, 80, 50);
     16 
     17  ctx.fillStyle = 'red';
     18  ctx.fillRect(20, 20, 80, 10);
     19  ctx.fillRect(20, 60, 80, 10);
     20  ctx.fillRect(20, 20, 10, 50);
     21  ctx.fillRect(90, 20, 10, 50);
     22 </script>