Bug 99651

Summary: REGRESSION: Animated SVG does not work on <body> when in a background-image
Product: WebKit Reporter: Philip Rogers <pdr>
Component: SVGAssignee: Nobody <webkit-unassigned>
Status: RESOLVED WORKSFORME    
Severity: Normal CC: fmalita, krit, sabouhallawa, schenney, zimmermann
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on: 99676, 99677    
Bug Blocks:    
Attachments:
Description Flags
Example for animation bug on body none

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.