https://github.com/mozilla/gecko-dev
Raw File
Tip revision: b6e8c30478e02cefa0a11f58f74b7db27cce456a authored by Gavin Sharp on 21 April 2014, 23:21:01 UTC
Backed out changeset cb7f81834560 (bug 980339) since it caused bug 999080, a=lsblakk
Tip revision: b6e8c30
linear-keywords-1-ref.html
<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(0,0,300,300);
  grad.addColorStop(0, '#0000ff');
  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"/>
</body>
</html>

back to top