<!DOCTYPE html>
<!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. -->
<link rel="match" href="2d.layer.nested-ctx-filter-expected.html">
<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.filter = 'drop-shadow(20px 20px 0px red)';
ctx.beginLayer();
ctx.filter = 'drop-shadow(10px 10px 0px green)';
ctx.beginLayer();
ctx.filter = 'drop-shadow(5px 5px 0px blue)';
ctx.fillStyle = 'grey';
ctx.fillRect(10, 10, 100, 100);
ctx.endLayer();
ctx.endLayer();
</script>