tor-browser

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

canvas.2d.offscreen.direction-ref.html (549B)


      1 <!doctype HTML>
      2 <meta charset="utf-8">
      3 <title>HTML5 Canvas Test Reference:  The direction attribute in an offscreen canvas</title>
      4 <link rel="author" href="mailto:schenney@chromium.org"/>
      5 <script>
      6  function runTest()
      7  {
      8    var canvas = document.getElementById("canvas1");
      9    var ctx = canvas.getContext("2d");
     10 
     11    ctx.font = "25px serif";
     12    ctx.direction = "rtl";
     13    ctx.fillText("ABC!", 60, 50);
     14  }
     15 </script>
     16 <body onload="runTest()">
     17  <canvas id="canvas1" width="300" height="150">Browser does not support HTML5 Canvas.</canvas>
     18 </body>