summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/html/canvas/offscreen/text/2d.text.fontVariantCaps4-expected.html
blob: 3813fd3684e8c94887337a551727e068469a66c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<!DOCTYPE html>
<!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. -->
<title>Canvas test: 2d.text.fontVariantCaps4</title>
<h1>2d.text.fontVariantCaps4</h1>
<p class="desc">Testing small caps setting in fontVariant</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 = "small-caps 32px serif";
  ctx.fillText("hello world", 20, 100);
</script>