Bug 1535077 - Switch to using Ref and PureComponent in the SearchBox component. r...
[gecko.git] / layout / reftests / bugs / 1219985-5.html
blobc00651d18eb00eed56c9271fb8a0323b256cd21c
1 <!DOCTYPE html>
2 <meta charset="utf-8">
3 <title>Bug 1219985: Only the context attributes from the first getContext call should be respected.</title>
5 <div style="width: 200px; height: 200px; background-color: red;">
6 <canvas id="c" width="200" height="200"></canvas>
7 </div>
9 <script>
11 var c = document.getElementById('c');
12 var ctx = c.getContext('2d', { alpha: true });
13 ctx = c.getContext('2d', { alpha: false });
14 ctx.fillStyle = 'green';
15 ctx.fillRect(50, 50, 100, 100);
17 </script>