SVG animation doesn't support calcMode discrete for number and color values.
Can be seen in the link above, the rect size should jump and not be animated.
Created attachment 80236 [details] Patch
Comment on attachment 80236 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=80236&action=review r=me. > Source/WebCore/svg/SVGAnimateElement.cpp:103 > + bool isInFirstHalfOfAnimation = percentage < 0.5; 0.5f? > LayoutTests/svg/animations/script-tests/animate-color-calcMode-discrete.js:38 > + ["animation", 0.001, "rect", sample1], Formatting, you should lign up the "rect" lines.
Committed r76819: <http://trac.webkit.org/changeset/76819>