After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 738118 - CSS styles not applied at all
CSS styles not applied at all
Status: RESOLVED DUPLICATE of bug 695162
Product: librsvg
Classification: Core
Component: general
2.40.x
Other Linux
: Normal normal
: ---
Assigned To: librsvg maintainers
librsvg maintainers
Depends on:
Blocks:
 
 
Reported: 2014-10-07 21:12 UTC by Giuseppe Bilotta
Modified: 2016-03-09 22:51 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
SVG version of a QR code that is not displayed correctly by librsvg (20.21 KB, image/svg+xml)
2014-10-07 21:12 UTC, Giuseppe Bilotta
Details

Description Giuseppe Bilotta 2014-10-07 21:12:10 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.
Comment 1 André Klapper 2016-03-08 23:23:30 UTC
Very similar: https://bugzilla.gnome.org/show_bug.cgi?id=702537
Comment 2 Massimo 2016-03-09 13:25:44 UTC
(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.
Comment 3 André Klapper 2016-03-09 22:45:42 UTC
(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 ***