gecko/layout/reftests/css-gradients/linear-vertical-1-ref.html
Robert O'Callahan ext:(%2C%20Ms2ger%20%3Cms2ger%40gmail.com%3E) 3ad4c03640 Bug 513395: Implement revised CSS gradient notation (2/2): rendering
--HG--
rename : layout/reftests/css-gradients/radial-ref.html => layout/reftests/css-gradients/radial-1-ref.html
rename : layout/reftests/css-gradients/radial.html => layout/reftests/css-gradients/radial-1a.html
rename : layout/reftests/css-gradients/twostops-ref.html => layout/reftests/css-gradients/twostops-1-ref.html
rename : layout/reftests/css-gradients/twostops.html => layout/reftests/css-gradients/twostops-1a.html
2009-11-02 11:36:43 -08:00

17 lines
339 B
HTML

<!DOCTYPE HTML>
<html>
<body>
<canvas id="canvas" width="300" height="300"/>
<script>
var ctx = document.getElementById('canvas').getContext('2d');
var grad = ctx.createLinearGradient(150,0,150,300);
grad.addColorStop(0, 'white');
grad.addColorStop(1, 'black');
ctx.fillStyle = grad;
ctx.fillRect(0,0,300,300);
</script>
</body>
</html>