This PR fixes a "patchwelcome" bug in 10 short lines of code.
http://bugs.jquery.com/ticket/7641 (was "patchwelcome", I just reopened it)
Animate is now compatible with \"auto\" and null values; 10 lines pat…
…ch + tests
null wasn't finally converted to \"\"
Support \"\" (empty string) instead of null, which is the right thing…
… to do and is consistent with .css()
improve test messages
update test name
Correct me if I'm wrong, but won't this only work if there are uncomputed styles set that we can fall back to? For instance, the default value of width is "auto" and unless a width is set somewhere in the user css that isn't auto, we still can't do the animation. Doesn't sound like full support of animating "auto".
That shouldn't be a problem since we use the computed style of the element
Which will return 'auto' in some cases.
OK, so this pull is no good? Or @louisremi do you think you can solve the problem?
Sorry, the discussion continued in the bug report and on IRC:
"The problem of the "auto" value returned for computed style is also present in other part of the effects code, see how jQuery.fx.cur() deals with it. This didn't prevent us from writing the effect component ;-)"
I think Timmywil agreed with that (we can discuss it again if necessary).
If the premise of this PR is still okay, it needs to be updated before it can be merged. Not sure where it stands.