This project is archived and is in readonly mode.

#824 ✓resolved
Yaroslav

Invalid value for property 'opacity' when using Element.fade()

Reported by Yaroslav | January 6th, 2010 @ 12:35 AM | in 2.0 (closed)

I have several elements on page that do fade('in') on mouseenter and fade('out') on mouseleave. When I move mouse fast across them I occasionally receive the following CSS errors:

In Firefox 3.5:
Warning: Error in parsing value for 'opacity'. Declaration dropped.

In Opera 10:
Invalid value for property: opacity
9.727297248700653e-7

It looks like the script calculates really small values for the opacity, so they start using exponential form when converted to strings. These should be rounded to zero I believe.

mootools core 1.2.4

Comments and changes to this ticket

  • fakedarren

    fakedarren February 8th, 2010 @ 01:43 PM

    • State changed from “new” to “open”
    • Assigned user set to “fakedarren”
    • Milestone changed from 2.0 to 1.3.0 rc2

    Would you be able to provide a demo of the issue in mooshell? http://mootools.net/shell

  • Yaroslav

    Yaroslav February 8th, 2010 @ 02:18 PM

    Here it is: http://mootools.net/shell/ppmFh/

    Not every click leads to the error, but it happens quite often. Might need to adjust delay. It might depend on speed of your PC.

    See it in Firefox or Opera error console.

  • fakedarren

    fakedarren February 14th, 2010 @ 12:41 PM

    • State changed from “open” to “resolved”
    • Milestone changed from 1.3.0 rc2 to 2.0

    I can see from your description that this is a possibility - but am going to mark as resolved. I could not reproduce but I can see that speed of PC could also have an effect.

    Reasons for this are twofold; one reason is that 2.0 will have a completely new animation system which should resolve this issue; two is that even if it were to throw an error using 1.2 / 1.3 it should not break the animation; as in, the animation will still continue to function.

    I hope this answer is acceptable. If the above error does break your animations, please comment and we'll see if we can patch 1.3.

    So in short - resolved in 2.0.

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

Shared Ticket Bins

People watching this ticket

Pages