Bug 1447035 - follow-up - reftest comment clarification. r=me

This commit is contained in:
Lee Salzman 2018-03-22 14:37:43 -04:00
Родитель 9ae36ca090
Коммит 7c1041b99c
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -4,11 +4,11 @@
function fillCanvas(gradColor) {
var c = document.getElementById(gradColor + 'Canvas');
var ctx = c.getContext("2d");
// Create gradient
// Create solid-color gradient, with all stops same color
var grd = ctx.createRadialGradient(75,50,5,90,60,100);
grd.addColorStop(0,gradColor);
grd.addColorStop(1,gradColor);
// Fill with gradient
// Fill with gradient, but effectively a solid fill
ctx.fillStyle = grd;
ctx.fillRect(0,0,200,100);
}