Closed Bug 611976 Opened 15 years ago Closed 15 years ago

Animate of fill property fails when animating "d" attribute of the same path

Categories

(Core :: SVG, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: marek.raida, Unassigned)

Details

Attachments

(2 files)

User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:2.0b8pre) Gecko/20101112 Firefox/4.0b8pre Build Identifier: Newly implemented animation of "d" attribute interferes somehow with existing animation of "fill" property of path... Reproducible: Always Steps to Reproduce: 1. Open testcase from attacment 2. Color of animated path should be interpolating/changing, but stays gray Actual Results: fill stays gray Expected Results: fill should change/animate
Attached image Testcase
Hi Marek. Glad to see people testing this stuff! :) In this case you seem to have just forgotten to add the xlink:href attributes on the <animate> elements targeting fill and stroke-width. If you add that it should work.
Status: UNCONFIRMED → RESOLVED
Closed: 15 years ago
Resolution: --- → INVALID
Jonathan's right -- those animations both target their parent, which in this case is the <g> element. You can fix the testcase by either (a) Adding "fill:inherit" style on the <path> (b) Removing the close- "/>" of "<path ... />" and adding a </path> after the animations.
Interestingly, the testcase Marek attached "works" in Opera, but I think that's due to an Opera bug. Here's a reduced testcase that's also broken in Opera, in the same way. (the <set> in this testcase affects the <rect>'s fill-color, when it shouldn't). Firefox and Webkit agree on both tests here, and Opera's the odd one out.
You're right and now I see my (stupid) mistake. Thank you guys for explanation...
> Interestingly, the testcase Marek attached "works" in Opera, but I think that's > due to an Opera bug. Worth reporting to Opera and/or adding to the SVG test suite.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: