| <!DOCTYPE html> |
| <!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. --> |
| <link rel="match" href="2d.filter.layers.gaussianBlur.mostly-x-expected.html"> |
| <title>Canvas test: 2d.filter.layers.gaussianBlur.mostly-x</title> |
| <h1>2d.filter.layers.gaussianBlur.mostly-x</h1> |
| <p class="desc">Test CanvasFilter() with gaussianBlur.</p> |
| <canvas id="canvas" width="100" height="100"> |
| <p class="fallback">FAIL (fallback content)</p> |
| </canvas> |
| <script> |
| const canvas = document.getElementById("canvas"); |
| const ctx = canvas.getContext('2d'); |
| |
| ctx.fillStyle = 'teal'; |
| ctx.beginLayer({filter: { |
| name: 'gaussianBlur', |
| stdDeviation: [4, 1], |
| }}); |
| ctx.fillRect(25, 25, 50, 50); |
| ctx.endLayer(); |
| </script> |