Bug Tracker

Modify

Ticket #9809 (closed bug: cantfix)

Opened 23 months ago

Last modified 23 months ago

Using slideToggle on an hidden element styled with display table will convert it to a block element

Reported by: matias Owned by:
Priority: low Milestone: None
Component: effects Version: 1.6.2
Keywords: Cc:
Blocking: Blocked by:

Description

This is similar to ticket #2185, but only appears to break when the element initially is set to display: none.

See  http://jsfiddle.net/matiasnu/4Cxr3/ and note that the first link will turn the "table" into a "block" when toggled, while the last link will honor the initial display value when toggled.

Change History

comment:1 Changed 23 months ago by timmywil

  • Priority changed from undecided to low
  • Resolution set to cantfix
  • Status changed from new to closed
  • Component changed from unfiled to effects

Thanks for taking the time to contribute to the jQuery project!

The problem is that the display set in the styles is display: none and we have no way to tell that display: table should be the default display for the div. jQuery does not parse css. It only retrieves what the browser has parsed, and, at that point, display: table has been completely lost. I don't think there's anything we can do here.

However, here's a workaround:  http://jsfiddle.net/timmywil/bmEVs/

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.