summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/html/canvas/element/manual/context-attributes/initial_color_alpha_false.html
blob: 9e86e5ce2c55afbed445843a3f41c79d3247c041 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
<!DOCTYPE html>
<meta charset="utf-8">
<title>CanvasRenderingContext 2D with alpha=flase context creation parameter is initialized with solid black.</title>
<link rel="author" title="Justin Novosad" href="mailto:junov@chromium.org">
<link rel="help" href="https://html.spec.whatwg.org/#concept-canvas-alpha">
<link rel="match" href="initial_color_alpha_false-ref.html">
<meta name="assert" content="Canvas pixels are initialized to opaque black when alpha attribute is false.">
<p>Test passes if a 100x100 black square is displayed below.</p>
<canvas id="c" width=100 height=100></canvas>
<script>
document.getElementById("c").getContext("2d", {alpha: false});
</script>