tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

mozPrintCallback-rect-002-print.html (520B)


      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-002-print-ref.html">
      5 <style>
      6  canvas {
      7    background: yellow;
      8    transform: scale(4);
      9    transform-origin: 0 0;
     10  }
     11 </style>
     12 <canvas id="myCanvas" width="80" height="80"></canvas>
     13 <script>
     14  myCanvas.mozPrintCallback = function (obj) {
     15    let ctx = obj.context;
     16    ctx.fillStyle = "cyan";
     17    ctx.fillRect(0, 0, 60, 60);
     18    obj.done();
     19  }
     20 </script>