adobe / svg-native-viewer

SVG Native viewer is a library that parses and renders SVG Native documents
Apache License 2.0
155 stars 37 forks source link

Gradients referencing other gradients that are defined later #156

Open moazin opened 3 years ago

moazin commented 3 years ago

At the moment, SNV does support one gradient using another one by the xlink:href attribute, however, it doesn't support it if the referenced element comes later on. This needs to be fixed as it's very common in fonts like Trajan. I'm thinking perhaps we could iterate and keep unresolved references and at the end of the traversal we can throw an error if unresolved references still exist.