1219985-6.html (429B)
1 <!DOCTYPE html> 2 <meta charset="utf-8"> 3 <title>Bug 1219985: moz-opaque should have the same effect as alpha:false</title> 4 5 <div style="width: 200px; height: 200px; background-color: red;"> 6 <canvas id="c" width="200" height="200" moz-opaque="true"></canvas> 7 </div> 8 9 <script> 10 11 var c = document.getElementById('c'); 12 var ctx = c.getContext('2d', { alpha: true }); 13 ctx.fillStyle = 'green'; 14 ctx.fillRect(50, 50, 100, 100); 15 16 </script>