Bug 18798

Summary: Discrete animation of 'fill' with url() not correct
Product: WebKit Reporter: Cameron McCormack (:heycam) <heycam>
Component: SVGAssignee: Nobody <webkit-unassigned>
Status: RESOLVED WORKSFORME    
Severity: Normal CC: rwlbuis
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Mac   
OS: OS X 10.5   
URL: http://mcc.id.au/temp/2008/discrete-fill-animation.svg

Description Cameron McCormack (:heycam) 2008-04-29 02:55:02 PDT
Animating an element's fill using <animate calcMode='discrete'> where the values list includes url() values causes the wrong values to be applied to the property.

It seems that if the initial value of the 'fill' (the underlying value) does not have a url() value, then black is used instead of the paint server.  If the initial value does have a url() value (which doesn't need to be the same URI reference as the value in the values list), then the animation is a bit strange: the url() value does result in the use of the paint server at that point, but for each subsequent value in the animation, the fill flickers briefly to the correct value but then reverts to using the paint server.
Comment 1 Rob Buis 2011-05-25 12:27:25 PDT
Hi Cameron,

I think this animation works nowadays ; I couldn't see a difference from how FF and Opera handle it.
Cheers,

Rob.
Comment 2 Cameron McCormack (:heycam) 2011-05-25 13:42:15 PDT
Looks good now, thanks!