summaryrefslogtreecommitdiffstats
path: root/layout/reftests/bugs/1750146-1-ref.html
blob: b0737ff72f69e0b745c06fbcbcb4b855d6bea242 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<!DOCTYPE html>
<meta charset="utf-8">

<div style="width: 100px; height: 100px;">
    <canvas id="c" width="100" height="100"></canvas>
</div>

<script>
var ctx = document.getElementById('c').getContext('2d', { alpha: false });
ctx.fillStyle = 'red';
ctx.fillRect(0, 0, 50, 100);
ctx.fillStyle = 'green';
ctx.fillRect(50, 0, 50, 100);
</script>