Commonizing attributes in a group breaks referencing elements
Bug #603988 reported by
Louis Simard
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Scour |
Fix Released
|
Medium
|
codedread |
Bug Description
The file fulltests/
-- To reproduce --
Program version: trunk revision 180
Command line: ./scour.py --shorten-ids --enable-
Changed in scour: | |
importance: | Undecided → Medium |
Changed in scour: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
The problem is this:
<svg xmlns="http:// www.w3. org/2000/ svg" xmlns:xlink="http:// www.w3. org/1999/ xlink">
<g>
<rect id="r" width="200" height="100" fill="green"/>
</g>
<use xlink:href="#r" x="300"/>
</svg>
gets transformed into this:
<svg xmlns="http:// www.w3. org/2000/ svg" xmlns:xlink="http:// www.w3. org/1999/ xlink">
<g fill="green">
<rect id="r" width="200" height="100" />
</g>
<use xlink:href="#r" x="300"/>
</svg>
And the green fill value is not propagated to the <use>.