Source code
Revision control
Copy as Markdown
Other Tools
<!DOCTYPE html>
<!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. -->
<meta charset="UTF-8">
<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');
ctx.font = "bold 64px Arial";
ctx.textBaseline = "top";
ctx.fillText("Happy", 0, 100);
</script>