Skip to main content

Bug Tracker

Side navigation

#11168 closed bug (wontfix)

Opened January 12, 2012 05:18PM UTC

Closed June 16, 2012 04:09PM UTC

Last modified October 15, 2012 08:50PM UTC

slideToggle and css position in IE

Reported by: Alexis Gagnon <laatkeur@yahoo.com> Owned by:
Priority: low Milestone: None
Component: effects Version: 1.7.1
Keywords: Cc: dmethvin
Blocked by: Blocking:
Description

In all IE version (IE6 to IE9), the slideToggle, slideUp and slideDown functions don't work properly on unordered list when list items have a css position set to relative (and probably absolute and fixed, but you can see the real problem easily with position: relative). If no css position is set, it works fine.

Bug occurs using most jQuery versions I've tried, including the latest (1.7.1), in all versions of IE from IE6 to IE9, on any Windows OS (WinXP, Vista 7).

When you slideDown, the list items will appear beneath the next element and then will slideDown. When you slideUp, it will slideUp but keep the list items beneath the next element and when the slideUp is complete, the list will disappear.

Test this in IE : http://jsfiddle.net/fZwHR/11/embedded/result/

Attachments (0)
Change History (8)

Changed January 23, 2012 11:38AM UTC by Sreejesh Karunakaran <sreekarun@gmail.com> comment:1

Tested the jsfiddle sample in IE9 (on windows 7). Could not reproduce the behavior.

Changed February 08, 2012 12:47PM UTC by sindresorhus comment:2

Simplified testcase

I could only reproduce the issue in your jsfiddle in IE6/7. The internetz says it's a very well known problem.

The problem is apparent without jQuery too, so it's not a jQuery bug.

Setting "position: relative; zoom: 1;" on the parent seems to fix the problem.

Changed March 28, 2012 09:28AM UTC by addyosmani comment:3

cc: → dmethvin
component: unfiledeffects
priority: undecidedlow

Given this is not a jQuery bug par se (and is well known), do we still want to fix it?

Changed May 16, 2012 10:51AM UTC by sindresorhus comment:4

keywords: → needsdocs
status: newopen

This is easy for devs to fix themselves. We should document, but not fix.

Changed June 16, 2012 04:09PM UTC by mikesherov comment:5

resolution: → wontfix
status: openclosed

needsdocs tickets should be closed. Once the documenting happens, remove the keyword.

Changed July 03, 2012 05:36PM UTC by gnarf comment:6

Honestly, they should become issues on the api repo now instead of lurking here.

Changed August 30, 2012 11:54PM UTC by sindresorhus comment:7

#12431 is a duplicate of this ticket.

Changed October 15, 2012 08:50PM UTC by mikesherov comment:8

keywords: needsdocs