2d.layer.anisotropic-blur.x-only.tentative.html (908B)
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.x-only.tentative-expected.html"> 5 <title>Canvas test: 2d.layer.anisotropic-blur.x-only.tentative</title> 6 <h1>2d.layer.anisotropic-blur.x-only.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 = new OffscreenCanvas(200, 200); 13 const ctx = canvas.getContext('2d'); 14 15 ctx.beginLayer({filter: { name: 'gaussianBlur', stdDeviation: [4, 0] }}); 16 17 ctx.fillStyle = 'teal'; 18 ctx.fillRect(50, 50, 100, 100); 19 20 ctx.endLayer(); 21 22 const outputCanvas = document.getElementById("canvas"); 23 outputCanvas.getContext('2d').drawImage(canvas, 0, 0); 24 </script>