Closed JoKalliauer closed 6 years ago
This is a correct behavior. clipPath
does not support g
children. They have no effect. It's a known Inkscape bug (not sure for librsvg).
svgo using collapseGroups can repair such files with:
svgo -i input.svg.txt -o output.svg.txt --disable=removeUnknownsAndDefaults --enable=collapseGroups --disable=convertPathData
Processing File:Oxygen15.04.1-application-x-bzip.svg with
accoring to Validators:
Error: SVG element g not allowed as child of SVG element clipPath in this context. (Suppressing further errors from this subtree.)
or with DTD:document type does not allow element "g" here
so the problem is:
But librsvg and inksape render it still correctly.
I would keep such elements, but as I said the file is invalid, therefore you might want to close this issue.
input.svg.txt
output.svg.txt