Closed
Bug 1163875
Opened 9 years ago
Closed 9 years ago
SVG SMIL animation of opacity appears to be broken
Categories
(Core :: SVG, defect)
Tracking
()
RESOLVED
FIXED
mozilla41
Tracking | Status | |
---|---|---|
firefox41 | --- | fixed |
People
(Reporter: mike, Assigned: longsonr)
Details
Attachments
(2 files)
690 bytes,
image/svg+xml
|
Details | |
4.00 KB,
patch
|
jwatt
:
review+
|
Details | Diff | Splinter Review |
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:37.0) Gecko/20100101 Firefox/37.0 Build ID: 20150415140819 Steps to reproduce: See http://codepen.io/guttentag/blog/smil-animate-opacity for an example (all elements in this person's CodePen should animate) It appears that when using SVG SMIL to animate opacity of elements, Firefox animates the element inconsistently, and often randomly. Sometimes clicking in the window can force a frame to update, but it is not reliable. Actual results: Firefox either stops animating or only animates some items. Expected results: In the above linked example, all elements should animate (can compare with Chrome for example, which animates correctly). Animating another property such as fillColor seems to be okay and Firefox renders as expecting. This seems to just be related to opacity?
Assignee | ||
Comment 1•9 years ago
|
||
begin values cannot start with a . i.e. you must write begin="0.9s" rather than begin=".9s" Firefox works the same as Opera 12 and follows the SVG/SMIL specification. Chrome does not. Either take this up with Chrome or with w3c (https://lists.w3.org/Archives/Public/www-svg/) as Firefox is correct per the appropriate specifications and Chrome is not.
Status: UNCONFIRMED → RESOLVED
Closed: 9 years ago
Resolution: --- → INVALID
Assignee | ||
Updated•9 years ago
|
Product: Firefox → Core
Assignee | ||
Updated•9 years ago
|
Component: Untriaged → SVG
Assignee | ||
Comment 2•9 years ago
|
||
If you look in the browser console (Web Developer->Browser Console), you'll see that the console is full of parse errors.
Reporter | ||
Comment 3•9 years ago
|
||
Ah okay. That explains the issue with that person's demonstration. I'd noticed it in an SVG I've been working with, and from doing some cursory researched assumed the issue behaviour was similar. Apologies for that, but also thank you for showing where that person's example was problematic :) I've put together what I believe to be a "reduced case" here. There are no errors in the console; Firefox seems to have some pretty difficult times with it. It could be related to it being in the <defs> part, not sure. http://codepen.io/mikehdt/pen/mJVgEz - the example which Firefox struggles with.
Assignee | ||
Updated•9 years ago
|
Status: RESOLVED → UNCONFIRMED
Resolution: INVALID → ---
Assignee | ||
Comment 4•9 years ago
|
||
Assignee | ||
Updated•9 years ago
|
Attachment #8604594 -
Attachment mime type: text/plain → image/svg+xml
Assignee | ||
Comment 5•9 years ago
|
||
Assignee: nobody → longsonr
Status: UNCONFIRMED → NEW
Ever confirmed: true
Attachment #8604651 -
Flags: review?(jwatt)
Comment 6•9 years ago
|
||
Comment on attachment 8604651 [details] [diff] [review] opacity.txt Review of attachment 8604651 [details] [diff] [review]: ----------------------------------------------------------------- ::: layout/base/RestyleManager.cpp @@ +804,5 @@ > } > + if (hint & nsChangeHint_InvalidateRenderingObservers || > + ((hint & nsChangeHint_UpdateOpacityLayer) && > + frame->IsFrameOfType(nsIFrame::eSVG) && > + !(frame->GetStateBits() & NS_STATE_IS_OUTER_SVG))) { Can you fix the indentation on these last two lines (add one more space) so that the grouping logic is clearer?
Attachment #8604651 -
Flags: review?(jwatt) → review+
Assignee | ||
Comment 7•9 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=b10ee7e76da4
Assignee | ||
Comment 8•9 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/462894a3b004
Flags: in-testsuite+
https://hg.mozilla.org/mozilla-central/rev/462894a3b004
Status: NEW → RESOLVED
Closed: 9 years ago → 9 years ago
status-firefox41:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla41
You need to log in
before you can comment on or make changes to this bug.
Description
•