Referenced linearGradient is not rendered properly
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Inkscape |
Confirmed
|
Medium
|
Unassigned |
Bug Description
Attributes defined on the referenced linearGradient are not properly inherited by the new linearGradient, which is rendered strangely.
-------
File Inkscape_
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg xmlns="http://
<defs>
<linearGradient id="linearGradi
<stop stop-color=
<stop stop-color=
</linearGradient>
<linearGradient id="linearGradi
</defs>
<rect x="0" y="0" width="128" height="128" fill="url(
</svg>
-------
The image rendered by Inkscape has a 1-pixel-wide border with the first color on the left, while the rest is filled by the other color.(See attachment)
This file can be render normally on my computer with Google Chrome 26(i.e. Webkit).
If I place the attributes in linearGradient2, the image behaves correctly again.
-------
W3C Recommendation
http://
...
13.2.2 Linear gradients
...
xlink:href = "<iri>"
...
Any ‘linearGradient’ attributes which are defined on the referenced element which are not defined on this element are inherited by this element.
...
tags: |
added: gradient removed: attribute inherit lineargradient render |
Reproduced with Inkscape 0.48.4 and 0.48+devel r12274 on OS X 10.7.5, rendering of attached sample SVG file in Inkscape compared to Squiggle (Batik 1.7), librsvg 2.36.4, Opera 12.14, Firefox 19.0.2.