Bug 37250 - SVG Animation calcMode="discrete" only works for 'values'
Summary: SVG Animation calcMode="discrete" only works for 'values'
Status: RESOLVED WORKSFORME
Alias: None
Product: WebKit
Classification: Unclassified
Component: SVG (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC OS X 10.5
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on: 63914
Blocks: 41761
  Show dependency treegraph
 
Reported: 2010-04-07 23:51 PDT by Dirk Schulze
Modified: 2011-09-07 01:41 PDT (History)
3 users (show)

See Also:


Attachments
calcMode="discrete" works only for 'values', others use 'linear' (1.02 KB, image/svg+xml)
2010-04-07 23:51 PDT, Dirk Schulze
no flags Details
animateTransform attributeName="transform" type="rotate" calcMode="discrete" (2.43 KB, image/svg+xml)
2011-07-04 10:52 PDT, MH
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dirk Schulze 2010-04-07 23:51:02 PDT
Created attachment 52841 [details]
calcMode="discrete" works only for 'values', others use 'linear'

SVG Animation calcMode="discrete" only works for 'values'
Comment 1 Rob Buis 2011-06-02 15:08:11 PDT
Hi Dirk,

(In reply to comment #0)
> Created an attachment (id=52841) [details]
> calcMode="discrete" works only for 'values', others use 'linear'
> SVG Animation calcMode="discrete" only works for 'values'

Does this work nowadays? It seems to animate exactly as in FF and Opera(I assume those are correct).
Cheers,

Rob.
Comment 2 Dirk Schulze 2011-06-02 23:39:55 PDT
I fixed it for number values. I'm unsure if we have the same problem with other kind of animation. Needs further testing.
Comment 3 MH 2011-07-04 10:39:18 PDT
I can confirm, that problem still exist in Safari 5, but OK in Chrome 14.

http://www.w3.org/Graphics/SVG/Test/20030813/svggen/animate-elem-02-t.svg

<animate id="an8" attributeName="height" calcMode="discrete" additive="sum" accumulate="sum" repeatCount="2" from="200" to="20" begin="0s" dur="4s" fill="freeze"/>

Still works not in Safari 5.

But OK in Chrome 14.0.803.0 dev


--
Only basic example works in Safari 5: 
http://www.w3.org/Graphics/SVG/Test/20030813/svggen/animate-elem-09-t.svg

<animate attributeName="height" calcMode="discrete" values="210;177;121;10" begin="0s" dur="8s" fill="freeze"/>
Comment 4 MH 2011-07-04 10:52:25 PDT
Created attachment 99647 [details]
animateTransform attributeName="transform" type="rotate" calcMode="discrete" 

strange, in this case also works not (Chrome 14):

<animateTransform attributeName="transform" type="rotate" 
  from="0,25,25" to="30,25,25" dur="1s" repeatCount="2" 
  calcMode="discrete" 
  additive="sum" accumulate="sum" fill="freeze" />
Comment 5 Dirk Schulze 2011-09-07 01:41:12 PDT
Closing bug now. If we should still have problems with discrete a more specific br should be opened.