layout/reftests/canvas/text-not-in-doc-ref.html
author Oleg Romashin <romaxa@gmail.com>
Sun, 03 Aug 2008 21:10:34 +0300
changeset 16952 a8b558d55351a8ab4f0a064e95b4f8f766fb4db4
parent 15400 1f58eff34a77904395774ca01fda897346d3e83e
permissions -rw-r--r--
Removed some not required changes which can break trunk build Removed empty lines changes

<!DOCTYPE HTML>
<html>
<head>
<title>Test to ensure canvas not in doc gets default properties</title>
</head>
<body>
<div style="font: 10px sans-serif; direction: ltr">
<canvas id="c" width="512" height="256"></canvas>
</div>
<script type="text/javascript">
  var canvas = document.getElementById('c');
  var ctx = canvas.getContext('2d');

  var str = 'BLEARGH!';
  ctx.font = '2em sans-serif';
  ctx.fillStyle = 'black';
  ctx.textAlign = 'center';
  ctx.fillText(str, 256, 128);
</script>
</body>
</html>