summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/html/canvas/element/manual/context-attributes/fill_alpha_false-ref.html
blob: 03265a656eb6f4f06e02853cf0bed0d19223137c (plain)
1
2
3
4
5
6
7
8
9
10
<!DOCTYPE html>
<meta charset="utf-8">
<title>CanvasRenderingContext 2D with alpha=flase, path fill with transparent color and 'copy' composite operation.</title>
<p>Test passes if a 100x100 black square is displayed below.</p>
<canvas id="c" width=100 height=100></canvas>
<script>
const ctx = document.getElementById("c").getContext("2d");
ctx.fillStyle = 'black';
ctx.fillRect(-1, -1, 102, 102);
</script>