2d.reset.render.global_composite_operation-expected.html (655B)
1 <!DOCTYPE html> 2 <!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. --> 3 <meta charset="UTF-8"> 4 <title>Canvas test: 2d.reset.render.global_composite_operation</title> 5 <h1>2d.reset.render.global_composite_operation</h1> 6 <p class="desc">check that canvas correctly renders rectangles with the default global composite operation after reset</p> 7 <canvas id="canvas" width="400" height="400"> 8 <p class="fallback">FAIL (fallback content)</p> 9 </canvas> 10 <script> 11 const canvas = document.getElementById("canvas"); 12 const ctx = canvas.getContext('2d'); 13 14 ctx.fillRect(10, 10, 100, 100); 15 ctx.fillRect(50, 50, 100, 100); 16 </script>