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 379629 - CSS: !important not respected
CSS: !important not respected
Status: RESOLVED DUPLICATE of bug 614606
Product: librsvg
Classification: Core
Component: general
2.16.x
Other All
: Normal normal
: ---
Assigned To: librsvg maintainers
librsvg maintainers
Depends on:
Blocks:
 
 
Reported: 2006-11-27 00:06 UTC by Andy Fitzsimon
Modified: 2010-04-04 23:17 UTC
See Also:
GNOME target: ---
GNOME version: 2.15/2.16


Attachments
svg with included stylesheet specifying !important style declarations (4.24 KB, image/svg+xml)
2006-11-27 00:07 UTC, Andy Fitzsimon
Details

Description Andy Fitzsimon 2006-11-27 00:06:51 UTC
Please describe the problem:
when applying a stylesheet, rsvg doesnt respect !important style declarations

Steps to reproduce:
1. create a svg document consisting of paths with regular stroke style rules inline on each element.

2. In the XML add <style type="text/css"> </style> underneath the <svg> element. 

3. place the CSS "path {stroke:pink !important;}"  within the style tags.


Actual results:
other svg rendering libraries display all path strokes as pink.

rsvg will render the first specified rule and stick with it, effectively ignoring the !important declaration

Expected results:
I expect pink strokes all around. ( in this test-case.)

Does this happen every time?
yes

Other information:
Comment 1 Andy Fitzsimon 2006-11-27 00:07:37 UTC
Created attachment 77182 [details]
svg with included stylesheet specifying !important style declarations
Comment 2 Hiroyuki Ikezoe 2010-04-04 23:17:59 UTC

*** This bug has been marked as a duplicate of bug 614606 ***