Skip to main content

Bug Tracker

Side navigation

#10568 closed bug (fixed)

Opened October 24, 2011 09:36PM UTC

Closed September 12, 2013 05:03PM UTC

Animate width of hidden inline element

Reported by: benoit Owned by:
Priority: low Milestone: 1.next
Component: effects Version: 1.6.4
Keywords: Cc:
Blocked by: Blocking:
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.

Attachments (0)
Change History (2)

Changed November 02, 2011 12:57AM UTC by timmywil comment:1

component: unfiledeffects
milestone: None1.next
priority: undecidedlow
status: newopen

Changed September 12, 2013 05:03PM UTC by timmywil comment:2

resolution: → fixed
status: openclosed

This was fixed in https://github.com/jquery/jquery/commit/73fe17299a840a8a7f3ffffcac15e32a88bd3d66 for #14344. Forgot about this ticket until afterwards.