summaryrefslogtreecommitdiffstats
path: root/layout/reftests/canvas/strokeText-path-ref.html
blob: 475e0d60a5e0ce23d85c2b7bd55f8aa1557955d8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<!DOCTYPE html>
<html>
  <head>
    <script type="text/javascript"><!--
window.onload = function () {
  var canvas = document.getElementById('testCanvas'),
      context = canvas.getContext('2d');

  // draw some text
  context.font = 'bold 40px sans-serif';
  context.strokeText("Hello world!", 10, 50);
};
      // --></script>
  </head>
  <body>
    <p>You should see only see "Hello world!" below, without any additional 
    line. JavaScript is required.</p>

    <p><canvas id="testCanvas" width="400" height="300">You need Canvas 
    support.</canvas></p>

  </body>
</html>