Debian Codegraph @

testing/web-platform/mozilla/tests/html/canvas/mozPrintCallback-rect-001-print.html

raw
1 <!DOCTYPE html>
2 <meta charset="utf-8">
3 <link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1908969">
4 <link rel="match" href="mozPrintCallback-rect-001-print-ref.html">
5 <style>
6 canvas {
7 background: yellow;
8 }
9 </style>
10 <canvas id="myCanvas" width="80" height="80"></canvas>
11 <script>
12 myCanvas.mozPrintCallback = function (obj) {
13 let ctx = obj.context;
14 ctx.fillStyle = "cyan";
15 ctx.fillRect(0, 0, 60, 60);
16 obj.done();
17 }
18 </script>