tor-browser

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

unclosed-layers.html (593B)


      1 <!DOCTYPE html>
      2 <link rel="match" href="unclosed-layers-expected.html">
      3 <title>Canvas test: unclosed-layers</title>
      4 <h1>unclosed-layers</h1>
      5 <p class="desc">Check that unclosed layers aren't rendered.</p>
      6 <canvas id="canvas" width="200" height="200">
      7  <p class="fallback">FAIL (fallback content)</p>
      8 </canvas>
      9 <script>
     10  const canvas = document.getElementById("canvas");
     11  const ctx = canvas.getContext('2d');
     12 
     13  ctx.fillStyle = 'purple';
     14  ctx.fillRect(60, 60, 75, 50);
     15 
     16  ctx.beginLayer();
     17  ctx.fillRect(40, 40, 75, 50);
     18  ctx.fillStyle = 'grey';
     19  ctx.fillRect(50, 50, 75, 50);
     20 </script>