Closed Bug 956066 Opened 12 years ago Closed 10 years ago

Animation happens twice when we also have a transition and a font-face load

Categories

(Core :: CSS Parsing and Computation, defect, P4)

defect

Tracking

()

RESOLVED FIXED
mozilla38

People

(Reporter: m+mozilla, Assigned: dbaron)

References

()

Details

Attachments

(2 files)

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:28.0) Gecko/20100101 Firefox/28.0 (Beta/Release) Build ID: 20140102004005 Steps to reproduce: Gone there http://kud.io/ Actual results: Double animation on "kud" circle Expected results: Just one animation. No problem with other browsers (like chrome).
Reproduced on latest Aurora 28.0a2 and latest Nightly 29.0a1 using Mac OS X 10.9, Ubuntu 13.04 x32 and Windows 7 x32.
Status: UNCONFIRMED → NEW
Component: Untriaged → CSS Parsing and Computation
Ever confirmed: true
OS: Mac OS X → All
Product: Firefox → Core
Hardware: x86 → All
Version: 28 Branch → Trunk
Double animation in what sense? I don't see any animation at all when I just load the page; I certainly don't see any "double animation"... What are the actual steps to reproduce here?
Flags: needinfo?(erwann.mest)
Sometimes, you have to refresh the webpage to see the correct animation. The "_kud" bubble comes from top to the middle. Works perfectly well on other browsers.
Flags: needinfo?(erwann.mest)
On firefox, either the animation doesn't come, either the animation comes twice (double top-to-middle).
Oh, I see, my window has to be > 1024px wide or the page won't try to do the animation. The issue here is that the <a> has both an animation which animates the "transform" property _and_ a transition on all properties. And something about the font-face load triggers a restyle which tickles the transition, or something....
Summary: Animation broken → Animation happens twice when we also have a transition and a font-face load
Yeah, small screens don't have the animation ;) Sorry, I should have explained it. Yes, you perfectly rewrited the code, thank you Boris!
I have a 1920x1200 screen, fwiw, but my browser windows are tiled two across.
David, what's the transition code doing here?
Flags: needinfo?(dbaron)
This code needs to be rewritten in the pretty near future (bug 960465), so I'm inclined not to debug this in the expectation that it will be fixed by that rewrite.
Depends on: 960465
Flags: needinfo?(dbaron)
Priority: -- → P4
As it will be fixed by https://bugzilla.mozilla.org/show_bug.cgi?id=960465 as you said, should we close the bug?
> As it will be fixed by https://bugzilla.mozilla.org/show_bug.cgi?id=960465 as you said, It will _probably_ be fixed. It might not be. So once that bug is fixed, we'll need to retest this one to see whether it's fixed or not.
Okay thanks :)
Attachment #8575161 - Attachment mime type: text/plain → text/html
The bug still exists and occurs when element has both transition and animation properties applied to the same CSS property. Interesting thing: bug occurs only on page load, if you remove element from page and append it back - everything works fine.
Fixed by bug 960465 (or, very unlikely, something else that landed the same day).
Assignee: nobody → dbaron
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla38
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: