summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/html/canvas/offscreen/reset/2d.reset.render.text-expected.html
blob: 7221483b02fe379e2aebcca708be235fd4a74e2c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<!DOCTYPE html>
<!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. -->
<title>Canvas test: 2d.reset.render.text</title>
<h1>2d.reset.render.text</h1>
<p class="desc">check that text is correctly rendered after reset</p>
<canvas id="canvas" width="400" height="400">
  <p class="fallback">FAIL (fallback content)</p>
</canvas>
<script>
  const canvas = document.getElementById("canvas");
  const ctx = canvas.getContext('2d');

  ctx.fillText("Lorem ipsum dolor sit amet, consectetur adipiscing elit", 0, 10);
</script>