Bug Tracker

Opened 6 years ago

Closed 6 years ago

#14847 closed bug (cantfix)

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 */

Change History (1)

comment:1 Changed 6 years ago by gibson042

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

Note: See TracTickets for help on using tickets.