layout/reftests/css-gradients/linear-mix-ref.html
author Jonathan Kew <jfkthame@gmail.com>
Sun, 16 Aug 2009 14:52:12 +0100
changeset 31590 9d372f843f7273bca6fa06d6c42421b42bf3e415
parent 30993 77a8228f29512b5b219f6cb8df9c799198f86532
child 34476 32e1ceb06e441fa3d1d2aef530ae6eeb810036d6
permissions -rw-r--r--
bug 493280 (part 1) refactor Mac font selection code and make 64-bit clean, r=joshmoz,jdaggett sr=roc

<html xmlns="http://www.w3.org/1999/xhtml" 
      class="reftest-wait">
<head>
<script>
function doDraw() {
  var ctx = document.getElementById('canvas').getContext('2d');

  var grad = ctx.createLinearGradient(150,20,270,130);
  grad.addColorStop(0, '#0000ff');
  grad.addColorStop(1, '#000000');

  ctx.fillStyle = grad;
  ctx.fillRect(0,0,300,300);

  ctx = document.getElementById('canvas2').getContext('2d');

  grad = ctx.createLinearGradient(30,300,300,50);
  grad.addColorStop(0, '#00ff00');
  grad.addColorStop(1, '#000000');

  ctx.fillStyle = grad;
  ctx.fillRect(0,0,300,300);

  document.documentElement.removeAttribute('class');
}
</script>
</head>
<body onload="doDraw();">
<canvas id="canvas" width="300" height="300" style="position: absolute; top: 30px; left: 30px;"></canvas>
<br/><br/>
<canvas id="canvas2" width="300" height="300" style="position: absolute; top: 360px; left: 30px;"></canvas>
</body>
</html>