Also removes fake IIFEs ffrom effects.
-(function( jQuery ) {
-
var fxNow, timerId,
rfxtypes = /^(?:toggle|show|hide)$/,
- rfxnum = /^([\-+]=)?((?:\d*\.)?\d+)([a-z%]*)$/i,
+ rfxnum = /^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,
rrun = /queueHooks$/,
animationPrefilters = [ defaultPrefilter ],
tweeners = {
}).length;
};
}
-
-})( jQuery );
});
});
+test("animate negative margin with px", function() {
+ expect(1);
+ stop();
+ jQuery("#foo").animate({ marginTop: "-100px" }, 100, function() {
+ equal( jQuery(this).css("marginTop"), "-100px", "Verify margin." );
+ start();
+ });
+});
+
test("animate negative padding", function() {
expect(1);
stop();