GNOME Bugzilla – Bug 711763
CSS style is not applied to gradient stops
Last modified: 2017-12-13 18:01:31 UTC
Created attachment 259405 [details] The mentioned file with incorrectly rendered gradient Consider the following svg file: <?xml version="1.0" encoding="UTF-8" standalone="no"?> <svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="48" height="48"> <defs> <style type="text/css"> .bug { stop-color:red } </style> <linearGradient id="gradient"> <stop offset="0" style="stop-color:green"/> <stop offset="1" class="bug"/> </linearGradient> </defs> <rect width="48" height="48" fill="url(#gradient)"/> </svg> What we should see is a gradient from green to red. This works correctly in Firefox and Opera. Rsvg however does not apply the style to the second stop, instead rendering it black, which is incorrect.
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/librsvg/issues/84.