Add svg-gradient function. Fixes #1383