blob: e2cef0d77a64b17657bdfe99194930c5328cc3e8 (
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.fontVariantCaps1</title>
<h1>2d.text.fontVariantCaps1</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>
|