[Webkit-unassigned] [Bug 105914] New: SVG animation does not run if added after the document is loaded

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Jan 2 03:14:52 PST 2013


https://bugs.webkit.org/show_bug.cgi?id=105914

           Summary: SVG animation does not run if added after the document
                    is loaded
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: All
               URL: http://bender.igel.co.jp/dev/run.html?href=demo/logo.x
                    ml
        OS/Version: All
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: SVG
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: pom at graougraou.com
                CC: zimmermann at kde.org,
                    webkit-bug-importer at group.apple.com


Created an attachment (id=181020)
 --> (https://bugs.webkit.org/attachment.cgi?id=181020&action=review)
Build an SVG fragment and insert it in an HTML document; the animation does not start

An SVG animation added into a HTML or SVG document after the document is loaded does not run at all in Safari on OS X (tested on 10.7.5 with Safari 6.0.2) and iOS (tested on 6.0.1). The attached example creates a polygon with an animateTransform child to rotate it for 500ms with an implicit begin time of 0. If the content is created before the end of the document is reached (i.e., in a script inside the body of the document) then the content appears and animates as expected. If the content is created later (i.e., delayed with a setTimeout) then the content appears correctly but the animation does not run at all. The expectation is that the animation should start anyway. Both a HTML and SVG version are attached showing the same problem.

Testing on Firefox, Chrome and the latest WebKit nightly show the expected results (i.e., the animation runs in all cases.)

The attached test case is a reduction of a more complex example found at: http://bender.igel.co.jp/dev/run.html?href=demo/logo.xml

In this version, the SVG content is actually loaded from an external resource (using XMLHttpRequest) and inserted in the document. However, in that situation, the results differ between Safari on OS X and on iOS: on OS X the animation does start (as it does on FF, Chrome and WebKit nightly), but not on iOS.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list