tor-browser

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

2d.layer.anisotropic-blur.mostly-y.tentative.html (802B)


      1 <!DOCTYPE html>
      2 <!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. -->
      3 <meta charset="UTF-8">
      4 <link rel="match" href="2d.layer.anisotropic-blur.mostly-y.tentative-expected.html">
      5 <title>Canvas test: 2d.layer.anisotropic-blur.mostly-y.tentative</title>
      6 <h1>2d.layer.anisotropic-blur.mostly-y.tentative</h1>
      7 <p class="desc">Checks that layers allow gaussian blur with separate X and Y components.</p>
      8 <canvas id="canvas" width="200" height="200">
      9  <p class="fallback">FAIL (fallback content)</p>
     10 </canvas>
     11 <script>
     12  const canvas = document.getElementById("canvas");
     13  const ctx = canvas.getContext('2d');
     14 
     15  ctx.beginLayer({filter: { name: 'gaussianBlur', stdDeviation: [1, 4] }});
     16 
     17  ctx.fillStyle = 'teal';
     18  ctx.fillRect(50, 50, 100, 100);
     19 
     20  ctx.endLayer();
     21 </script>