Closed Bug 619971 Opened 9 years ago Closed 9 years ago

Timing of string animation changes causing filters-image-02-b to fail


(Core :: SVG, defect)

Not set





(Reporter: heycam, Unassigned)




filters-image-02-b from the SVG 1.1 test suite is failing.  It looks to me like the test is expecting different timing behaviour for the animation of the xlink:href="" on <feImage> and <image>.  Firefox seems to be switching to the to="" value at the beginning of the 2s duration rather than at 1s or 2s -- I can't remember which is correct for types like strings that don't interpolate, when calcMode="linear", but I think the test is expecting 2s.  Brian/Daniel, could you confirm whether the test is valid?
The test effectively has calcMode="discrete" (since you can't linearly interpolate strings), and given that, this behavior is correct per the SMIL spec.  We actually "fixed" our implementation to have the current behavior in bug 544855.

As noted in that bug's opening comment, this isn't the first test in the SVG testsuite to fall prey to this misconception -- is a www-svg post about the same issue in a different test (animate-elem-227-t).
Relevant bits of SMIL spec:
> if the attribute does not support linear interpolation (e.g. for strings),
> the calcMode attribute is ignored and discrete interpolation is used.
> For the shorthand form to animation, there is only 1 value; a
> discrete to animation will simply set the "to" value for the
> simple duration.
(In reply to comment #1)
> this behavior is correct per the SMIL spec

(if it wasn't clear: "this behavior" = "mozilla-central's current behavior")
OS: Mac OS X → All
Hardware: x86 → All
The test has been fixed (and we now pass it).
Closed: 9 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.