Skip to main content

Bug Tracker

Side navigation

#14847 closed bug (cantfix)

Opened March 05, 2014 12:32AM UTC

Closed March 08, 2014 04:07PM UTC

Animate function broken with margin

Reported by: BrodaNoel Owned by:
Priority: undecided Milestone: None
Component: css Version: 1.11.0
Keywords: Cc:
Blocked by: Blocking:
Description

Hi guys.

Try this:

http://jsfiddle.net/uK3Ae/2/

When we have an element centered (with margin: 0 auto;) and then we set the new margin-left:xxx; with animate function, the animation is broken in Firefox and Safari, but not in Chrome.

I'm ussing:

/*! jQuery v1.11.0 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/license */

Attachments (0)
Change History (1)

Changed March 08, 2014 04:07PM UTC by gibson042 comment:1

component: unfiledcss
resolution: → cantfix
status: newclosed

This is yet another manifestation of the Firefox getComputedStyle "0px" results for margin: auto elements. From http://bugs.jquery.com/ticket/11813?cnum_edit=3#comment:3:

So, firefox incorrectly reports 0px. It's actually a well known bug that I've advocated for fixing for a while. I just poked them about it. The bug reports are here:

>

https://bugzilla.mozilla.org/show_bug.cgi?id=381328 https://bugzilla.mozilla.org/show_bug.cgi?id=610966