Created attachment 140831 [details]
SVG created with matplotlib
When I insert an SVG into Writer (see attached SVG as an example) it is not correctly rendered (circle faces should be open). If the same SVG is opened in Chrome, Libreoffice Draw, Inkscape, ... it renders correctly.
1. Create new Writer document
2. Insert the attached image (via the file menu, Insert > Image...)
3. Circles on the vertexes are rendered with closed faces (filled) when they should be open.
4. Compare output in Chrome, Opera, Firefox, ...
1. Circles to be rendered correctly
Inserting the SVG exhibits the issue, opening the SVG (to Draw) renders the path correctly.
Created attachment 140852 [details]
with <style> in <defs>
Created attachment 140853 [details]
without <style> in <defs>
I have reduced the problem. The reason is in the <defs> element line#6 to #10 in the attached documents.
Excellent! Thanks for the diagnosis. Should this render correctly in Libreoffice or is it an illegal syntax/style element in the SVG format that I need matplotlib to look at?
Based on the comments thus far I have refined the issue further. It appears to be an issue with the * preceding the style definition.
According to https://validator.w3.org/#validate_by_upload all attached files are valid.
Indeed exchanging the selector * with selector 'path' solves the problem.
We have already bug 100198 about the selector *, so likely duplicate.
Thank you. I will manually edit the files to work around the issue and follow the bug you referenced to see when it is resolved.
Regression introduced by e17a730c0076b10678c860ae3285bc8a98282415 which is the same as in bug 99115
The problem is indeed the *
*** This bug has been marked as a duplicate of bug 99115 ***