Bug 99651 - REGRESSION: Animated SVG does not work on <body> when in a background-image
Summary: REGRESSION: Animated SVG does not work on <body> when in a background-image
Status: RESOLVED WORKSFORME
Alias: None
Product: WebKit
Classification: Unclassified
Component: SVG (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on: 99676 99677
Blocks:
  Show dependency treegraph
 
Reported: 2012-10-17 16:14 PDT by Philip Rogers
Modified: 2015-02-04 14:28 PST (History)
5 users (show)

See Also:


Attachments
Example for animation bug on body (172 bytes, text/html)
2012-10-17 16:21 PDT, Dirk Schulze
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Philip Rogers 2012-10-17 16:14:04 PDT
See testcase: http://m8y.org/tmp/testcase228.xhtml

Reported by external user "nemo" on IRC.
Comment 1 Dirk Schulze 2012-10-17 16:21:52 PDT
Created attachment 169289 [details]
Example for animation bug on body

SVG animation seem not to work on body elements. Tried html, p, div and worked there.
Comment 2 Philip Rogers 2012-10-17 21:12:26 PDT
(In reply to comment #1)
> Created an attachment (id=169289) [details]
> Example for animation bug on body
> 
> SVG animation seem not to work on body elements. Tried html, p, div and worked there.

I wasn't able to reproduce the bug with your testcase, nor reproduce differences between body and p/div/etc.

I think this bug has at least two root issues:
1) We do not support data uri images in the svg-as-image case. This is why the leaves do not show up. https://bugs.webkit.org/show_bug.cgi?id=99677
2) There is at least one sizing bug tickled by this repro where we do not repaint correctly. https://bugs.webkit.org/show_bug.cgi?id=99676
Comment 3 Dirk Schulze 2012-10-18 09:19:06 PDT
(In reply to comment #2)
> (In reply to comment #1)
> > Created an attachment (id=169289) [details] [details]
> > Example for animation bug on body
> > 
> > SVG animation seem not to work on body elements. Tried html, p, div and worked there.
> 
> I wasn't able to reproduce the bug with your testcase, nor reproduce differences between body and p/div/etc.
> 
> I think this bug has at least two root issues:
> 1) We do not support data uri images in the svg-as-image case. This is why the leaves do not show up. https://bugs.webkit.org/show_bug.cgi?id=99677
> 2) There is at least one sizing bug tickled by this repro where we do not repaint correctly. https://bugs.webkit.org/show_bug.cgi?id=99676

Sorry, I tried with chrome canary, not with released version. Please check again.
Comment 4 Said Abou-Hallawa 2015-02-04 14:28:47 PST
The test case includes an SVG but this SVG does not reference any resource either data uri or external. So it works for me. I would expect the SVG http://srufaculty.sru.edu/david.dailey/svg/ovaling.svg may have changed since this bug was opened to not include any data uri resources.

But I found another issue with this test case. The animation performs really slow when the SVG is the background of the <body> element.  I opened a new bug instead of recycling this one. The bug is https://bugs.webkit.org/show_bug.cgi?id=141261.