https://github.com/mozilla/gecko-dev
Raw File
Tip revision: 700322067f1235e552f82d5aeb9fc83d337fa72d authored by Robert O'Callahan on 12 February 2013, 10:39:28 UTC
Bug 839270. Add padding code to nsStyleContext::AddChild to try to work around mysterious crash bug. r=dbaron,a=akeybl
Tip revision: 7003220
aja-linear-2-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(0,0,100,200);
  grad.addColorStop(0, 'yellow');
  grad.addColorStop(1, 'blue');

  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