tor-browser

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

canvas-drawImage-no-width-or-height-ref.html (516B)


      1 <!DOCTYPE HTML>
      2 <html class="reftest-wait">
      3 <script src="svg-image-util.js"></script>
      4 <style>
      5  canvas {
      6    background: blue;
      7  }
      8 </style>
      9 <body>
     10  <script>
     11    let viewBoxes = [null, "0 0 50 50", "0 0 50 20"];
     12    let promises = [];
     13    for (viewBox of viewBoxes) {
     14      promises.push(generateCanvasDrawImageSVG("350", "200", "300px", "150px", viewBox));
     15    }
     16    Promise.all(promises).then(() => { document.documentElement.className = "" });
     17  </script>
     18  <!-- Body gets populated by script -->
     19 </body>
     20 </html>