tor-browser

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

2d.layer.flush-on-frame-presentation.plain_layer-expected.html (1099B)


      1 <!DOCTYPE html>
      2 <!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. -->
      3 <meta charset="UTF-8">
      4 <html class="reftest-wait">
      5 <title>Canvas test: 2d.layer.flush-on-frame-presentation.plain_layer</title>
      6 <h1>2d.layer.flush-on-frame-presentation.plain_layer</h1>
      7 <p class="desc">Check that layers state stack is flushed and rebuilt on frame renders.</p>
      8 <canvas id="canvas" width="200" height="200">
      9  <p class="fallback">FAIL (fallback content)</p>
     10 </canvas>
     11 <script type="module">
     12  const canvas = document.getElementById("canvas");
     13  const ctx = canvas.getContext('2d');
     14 
     15  ctx.fillStyle = 'purple';
     16  ctx.fillRect(60, 60, 75, 50);
     17  ctx.globalAlpha = 0.5;
     18  ctx.filter = 'blur(1px)';
     19 
     20  ctx.beginLayer();
     21  ctx.fillStyle = 'purple';
     22  ctx.fillRect(40, 40, 75, 50);
     23  ctx.fillStyle = 'grey';
     24  ctx.fillRect(50, 50, 75, 50);
     25 
     26  ctx.fillStyle = 'grey';
     27  ctx.fillRect(70, 70, 75, 50);
     28  ctx.fillStyle = 'orange';
     29  ctx.fillRect(80, 80, 75, 50);
     30  ctx.endLayer();
     31 
     32  ctx.fillRect(80, 40, 75, 50);
     33  document.documentElement.classList.remove("reftest-wait");
     34 </script>
     35 </html>