GNOME Bugzilla – Bug 614704
css style doesn't override presentation attributes
Last modified: 2010-04-14 07:04:09 UTC
Created attachment 157785 [details] [review]
According to the svg spec, css styles should override presentation attributes such as fill="black" that are specified directly in the svg. The attached patch has this effect, by parsing the presentation attributes before looking for a style matching class/id.
Can you attach an example SVG file for this bug, please? I am planning to write test codes for CSS handling and would like to get the test case for this bug in the codes.
I filed a test code bug. Bug #614866.
Created attachment 157969 [details]
Here is an example. This comes up blue in firefox (according to spec), but shows up red in eog (using librsvg).
Thanks! I added this test case into the patch for bug 614866.
Comment on attachment 157785 [details] [review]
Committed without debug print and check the existence of property bag.