Editing a gradient with seperate attributes creates an extra style attribute
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Inkscape |
New
|
Undecided
|
Unassigned |
Bug Description
When editing a gradient's stop colours whose values for stop colour and stop opacity are defined seperately as "stop-color" and "stop-opacity" attributes as supposed to be defined as one "style" attribute (the way Inkscape saves it) will create an extra "style" attribute.
So the existing "stop-color" and "stop-opacity" won't be touched nor removed but an extra "style" attribute containing the changed colour will be written afterwards.
Example:
Editing the following gradient stop colours (valid SVG)
<stop
offset="0"
<stop
offset="1"
results in:
<stop
offset="0"
id="stop7"
<stop
offset="1"
id="stop9"
This causes that when rendered with QtSVG or librsvg (which don't support correct style processing order) the gradient is still shown with the original colours.
Gecko, Chromium and WebKit show the gradient colours correctly anyway.
tags: | added: gradient svg |
Reported earlier as: /bugs.launchpad .net/inkscape/ +bug/1075325
* Bug #1075325 “inkscape does not remove stop-color attribute from lineargradient tag when modified”
https:/
Related earlier report (old color of 'fill' presentation attribute is retained (unchanged), new modified color is updated and stored as style property only): /bugs.launchpad .net/inkscape/ +bug/1265637
* Bug #1265637 “Inkscape not saving editing svg properly”
https:/
Proposing to link as duplicate to bug #1075325.