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 711763 - CSS style is not applied to gradient stops
CSS style is not applied to gradient stops
Status: RESOLVED OBSOLETE
Product: librsvg
Classification: Core
Component: general
2.40.x
Other Linux
: Normal normal
: ---
Assigned To: librsvg maintainers
librsvg maintainers
Depends on:
Blocks:
 
 
Reported: 2013-11-10 08:33 UTC by beryllium
Modified: 2017-12-13 18:01 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
The mentioned file with incorrectly rendered gradient (409 bytes, image/svg+xml)
2013-11-10 08:33 UTC, beryllium
Details

Description beryllium 2013-11-10 08:33:18 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.
Comment 1 GNOME Infrastructure Team 2017-12-13 18:01:31 UTC
-- 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.