tor-browser

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

2d.text.writingmode-expected.html (591B)


      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.text.writingmode</title>
      5 <h1>2d.text.writingmode</h1>
      6 <p class="desc">writing-mode in css should not change how text is rendered</p>
      7 <canvas id="canvas" width="300" height="300">
      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.font = "bold 64px Arial";
     15  ctx.textBaseline = "top";
     16 
     17  ctx.fillText("Happy", 100, 0);
     18 </script>