Bug 20028 - Dynamically created <animate> elements do not animate upon document insertion as they should
Summary: Dynamically created <animate> elements do not animate upon document insertion...
Alias: None
Product: WebKit
Classification: Unclassified
Component: SVG (show other bugs)
Version: 528+ (Nightly build)
Hardware: Mac OS X 10.4
: P2 Normal
Assignee: Rob Buis
URL: http://www.kevlindev.com/tutorials/ba...
Keywords: HasReduction, InRadar
Depends on:
Reported: 2008-07-13 15:35 PDT by lars.sonchocky-helldorf
Modified: 2011-05-26 09:13 PDT (History)
2 users (show)

See Also:

Patch (9.97 KB, patch)
2011-05-26 08:36 PDT, Rob Buis
krit: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description lars.sonchocky-helldorf 2008-07-13 15:35:39 PDT
http://www.kevlindev.com/tutorials/basics/animation/js_dom_smil/index.htm does not work: The green rects are drawn but they don't move.
Comment 1 Mark Rowe (bdash) 2008-07-14 12:49:58 PDT
Comment 2 Brad Neuberg 2009-08-05 12:11:01 PDT
I confirm that I'm encountering this bug as well with dynamically created SMIL animate elements:

rect = document.createElementNS(svgns, 'rect');
rect.setAttribute('x', 50);
rect.setAttribute('y', 50);
rect.setAttribute('width', 50);
rect.setAttribute('height', 50);
rect.setAttribute('fill', '#0f5');
rect.setAttribute('stroke', '#085');
rect.setAttribute('stroke-width', '4');
anim = document.createElementNS(svgns, 'animate');
anim.setAttribute('attributeName', 'x');
anim.setAttribute('calcMode', 'linear');
anim.setAttribute('additive', 'replace');
anim.setAttribute('accumulate', 'none');
anim.setAttribute('from', 50);
anim.setAttribute('to', 100);
anim.setAttribute('begin', '2s; 5s');
anim.setAttribute('dur', '2s');
anim.setAttribute('fill', 'remove');
Comment 3 Rob Buis 2011-05-26 08:36:32 PDT
Created attachment 94978 [details]
Comment 4 Dirk Schulze 2011-05-26 09:02:12 PDT
Comment on attachment 94978 [details]

Comment 5 Rob Buis 2011-05-26 09:13:29 PDT
Committed r87392: <http://trac.webkit.org/changeset/87392>