chromium/third_party/blink/web_tests/external/wpt/html/canvas/element/text/2d.text.writingmode.html

<!DOCTYPE html>
<!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. -->
<link rel="match" href="2d.text.writingmode-expected.html">
<title>Canvas test: 2d.text.writingmode</title>
<h1>2d.text.writingmode</h1>
<p class="desc">writing-mode in css should not change how text is rendered</p>
<canvas id="canvas" width="100" height="50">
  <p class="fallback">FAIL (fallback content)</p>
</canvas>
<script>
  const canvas = document.getElementById("canvas");
  const ctx = canvas.getContext('2d');

  canvas.style.writingMode = "vertical-rl";
  canvas.style.fontFamily = "Arial";

  ctx.font = "bold 64px Arial";
  ctx.textBaseline = "top";

  ctx.fillText("Happy", 0, 100);
</script>