https://github.com/mozilla/gecko-dev
Raw File
Tip revision: 9c3dd5dd9c1777f3b956d4044e4b944ef749e2f5 authored by Ben Hearsum on 29 October 2012, 18:16:28 UTC
bug 705788: exclude override.ini from mac signatures. r=ted, a=lsblakk
Tip revision: 9c3dd5d
aja-linear-5-ref.html
<!doctype html>
<!-- Derived from http://a-ja.net/newgrad.html -->
<html class="reftest-wait">
<head>
<script>
function doDraw() {
  var ctx = document.getElementById('canvas').getContext('2d');

  var grad = ctx.createLinearGradient(50, 0, 50, 200);
  grad.addColorStop(0, 'yellow');
  grad.addColorStop(0.2, 'blue');
  grad.addColorStop(1, '#0f0');

  ctx.fillStyle = grad;
  ctx.fillRect(0,0,100,200);

  document.documentElement.removeAttribute('class');
}
</script>
</head>
<body onload="doDraw();">
<canvas id="canvas" width="100" height="200"></canvas>
</body>
</html>
back to top