WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
31960
SVG: DOM animation of <svg> elements fails to redraw properly
https://bugs.webkit.org/show_bug.cgi?id=31960
Summary
SVG: DOM animation of <svg> elements fails to redraw properly
Richard Connamacher
Reported
2009-11-29 03:42:26 PST
Created
attachment 43990
[details]
Test case Animating an <svg> element via the DOM leaves ugly tearing artifacts on the screen that remain until a redraw is forced (i.e. by resizing the window). The included SVG file causes a blue rectangle to move continuously (and randomly) around the screen, leaving plenty of tearing artifacts. The blue rectangle is represented by an <svg> object containing a <rect>: <svg id="card" width="100" height="140" x="50" y="100"> <rect class="card-back" width="100" height="140" rx="10" ry="10" fill="blue" stroke="black" stroke-width="2" /> </svg> if the animation were applied directo to the <rect> element, no tearing occurs. The tearing only happens when the target of the animation is the <svg> element. If the <svg id="card"> element is placed inside a <g> element (strangely enough), this bug disappears. (Tested on Mac OS X 10.5 and both Safari 4.0.4 and nightly
r51397
, the latest version as of 11/29/2009.)
Attachments
Test case
(2.61 KB, image/svg+xml)
2009-11-29 03:42 PST
,
Richard Connamacher
no flags
Details
Screenshot showing the visual bug
(75.39 KB, image/png)
2009-12-02 20:25 PST
,
Richard Connamacher
no flags
Details
View All
Add attachment
proposed patch, testcase, etc.
Richard Connamacher
Comment 1
2009-12-02 20:25:58 PST
Created
attachment 44204
[details]
Screenshot showing the visual bug
Nikolas Zimmermann
Comment 2
2010-01-17 17:59:25 PST
This is fixed in trunk. Leaving a note on my desk to add this testcase as webkit layout test. Thanks for the bug report!
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug