background-gradient[similarity]: Fix greater-than-1 colorstop indices in canvas.