Ticket #10568 (open bug)
Animate width of hidden inline element
| Reported by: | benoit | Owned by: | |
|---|---|---|---|
| Priority: | low | Milestone: | 1.next |
| Component: | effects | Version: | 1.6.4 |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
Description
Versions affected: 1.6 - 1.6.4
Browsers: Firefox 7.0.1, Chromium 17.0.914.0, IE 9/8, Opera 11.52,
Operating system: Windows 7 SP1 and Windows XP SP3,
http://jsfiddle.net/jzjam/
When calling animate('width', 'show') on hidden inline element it shows up immediately instead of animating the width. When hiding it works as expected.
I pinpointed it to line 8243 non-minimized jQuery source v.1.6.4:
jQuery.css( this, "display" ) === "inline"
It checks whether "display" style equals "inline" but it gets "none".
I don't know what should be the proper way to fix it or even if it should be fixed, but I thought I should report it.
Change History
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

Confirmed. http://jsfiddle.net/timmywil/jzjam/1/