<!DOCTYPE html>
<!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. -->
<title>Canvas test: 2d.layer.nested-ctx-filter</title>
<h1>2d.layer.nested-ctx-filter</h1>
<p class="desc">Tests nested canvas layers with 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(45, 45, 100, 100);
ctx.fillRect(40, 40, 100, 100);
ctx.fillRect(35, 35, 100, 100);
ctx.fillRect(30, 30, 100, 100);
ctx.fillStyle = 'green';
ctx.fillRect(25, 25, 100, 100);
ctx.fillRect(20, 20, 100, 100);
ctx.fillStyle = 'blue';
ctx.fillRect(15, 15, 100, 100);
ctx.fillStyle = 'grey';
ctx.fillRect(10, 10, 100, 100);
</script>