GNOME Bugzilla – Bug 738118
CSS styles not applied at all
Last modified: 2016-03-09 22:51:02 UTC
Created attachment 287999 [details] SVG version of a QR code that is not displayed correctly by librsvg CSS fill styles for rectangles are not applied at all, neither when tag-based nor when class-based, as show by the attached SVG (quick-brown-fox-qrencode.svg), which is supposed to show a QR core in red over yellow background, but comes out as a black box in librsvg.
Very similar: https://bugzilla.gnome.org/show_bug.cgi?id=702537
(In reply to André Klapper from comment #1) > Very similar: https://bugzilla.gnome.org/show_bug.cgi?id=702537 The attached svg has a <style> element without a type attribute, it is a duplicate of this one: https://bugzilla.gnome.org/show_bug.cgi?id=695162 which has a patch attached. I just checked that changing this line: https://git.gnome.org/browse/librsvg/tree/rsvg-base.c#n185 from handler->is_text_css = type && g_ascii_strcasecmp (type, "text/css") == 0; to ... = !type || g_asci.. fixes the issue.
(In reply to Massimo from comment #2) > it is a duplicate of this one: > https://bugzilla.gnome.org/show_bug.cgi?id=695162 Thanks. Marking as such. *** This bug has been marked as a duplicate of bug 695162 ***