Using % for gradient stop generates offset as NaN%.
If you create a gradient using percentage values for offsets(stops), Snap SVG does not generate the correct gradient definition. Using non percentage based values works. The documentation on the API Docs page demonstrates using percentage values. If it accepts numbers, then per SVG spec it should range between 0 and 1. Below is the Gist with sample outputs: https://gist.github.com/doomsbuster/8208506
Documentation on project site: https://www.evernote.com/shard/s43/sh/74f784fc-b901-46f4-8a2f-a002d7b50bfd/b7472fb11ee1f25916af0e5b3dd98078
Thanks Dmitry, I had the same change ready. Just didn't get time to submit a pull request :-)
No worries. :)