<!DOCTYPE html>
<!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. -->
<title>Canvas test: 2d.layer.ctm.ctx-filter</title>
<h1>2d.layer.ctm.ctx-filter</h1>
<p class="desc">Checks that parent transforms don't affect context filters.</p>
<canvas id="canvas" width="200" height="200">
<p class="fallback">FAIL (fallback content)</p>
</canvas>
<script>
const canvas = document.getElementById("canvas");
const ctx = canvas.getContext('2d');
ctx.fillStyle = 'red';
ctx.fillRect(30, 40, 20, 120);
ctx.fillStyle = 'grey';
ctx.fillRect(20, 30, 20, 120);
ctx.fillStyle = 'green';
ctx.fillRect(70, 40, 20, 120);
ctx.fillStyle = 'grey';
ctx.fillRect(60, 30, 20, 120);
ctx.fillStyle = 'blue';
ctx.fillRect(105, 35, 20, 120);
ctx.fillStyle = 'grey';
ctx.fillRect(100, 30, 20, 120);
</script>