Make librsvg more relaxed on missing filter definitions
Sometimes Inkscape produces invalid SVG files, e.g. removed filter definitions stay in use in some elements styles.
The attached file fails to open with librsvg, but opens file with Chrome, Inkscape, etc. Although if the file is modified and saved in Inkscape, the invalid style filter is not fixed/removed.
rsvg-convert gives that error:
pattern "#linearGradient8614" was not found and there was no fallback alternate element Rect id=Rectangle_25 will not be rendered since its filter "#filter7848" was not found
I agree that
#filter7848 definition is missing, but is that stopping the entire SVG rendering?
Also, I'm not sure about the error about
#linearGradient8614 that rsvg-convert reports.
<linearGradient id="linearGradient8614"> defined.
If I remove
filter:url(#filter7848) from the rect style, the document is rendered OK.