Source code
Revision control
Copy as Markdown
Other Tools
<!DOCTYPE html>
<!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. -->
<meta charset="UTF-8">
<title>Canvas test: 2d.layer.non-invertible-matrix.shadow</title>
<h1>2d.layer.non-invertible-matrix.shadow</h1>
<p class="desc">Test drawing layers when the transform is not invertible.</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 = 'blue';
ctx.fillRect(30, 30, 50, 50);
</script>