Skip to main content

Bug Tracker

Side navigation

#6525 closed bug (fixed)

Opened May 04, 2010 07:36PM UTC

Closed February 13, 2011 10:39PM UTC

Last modified April 12, 2012 01:53AM UTC

IE script error on z-index 'auto' or 'inherit'

Reported by: dtetto Owned by:
Priority: high Milestone: 1.4.3
Component: css Version: 1.4.2
Keywords: css z-index Cc:
Blocked by: Blocking:
Description

IE 6 and 7 hit a "Type mismatch" at "Line: 4619" when setting the z-index to 'auto' or 'inherit' using .css(). Both values are valid according to the W3C ('auto' is the default!).

http://www.w3.org/TR/CSS2/visuren.html#z-index

Test case at: http://www.babywhale.net/jquery/zindex-auto.php

or just run $(el).css('z-index','auto') on any element!

Attachments (0)
Change History (5)

Changed October 21, 2010 03:46PM UTC by karl@monket.net comment:1

Any workaround for this?

Changed October 21, 2010 08:14PM UTC by SlexAxton comment:2

keywords: → css z-index
milestone: 1.4.31.5
priority: → high
status: newopen

I ran the tests and got the errors. The line given didn't really make sense. Opening up for a fix.

Changed October 21, 2010 08:15PM UTC by SlexAxton comment:3

Until this gets fixed, I'd suggest adding or removing a class that gives this property.

Changed February 13, 2011 10:39PM UTC by jitter comment:4

milestone: → 1.4.3
resolution: → fixed
status: openclosed

Fixed since 1.4.3. Check #5509

As this test case shows setting z-index no longer throws an exception but as e.g. IE6 doesn't regard auto as valid value setting to auto simply gets ignored by IE6.

Changed April 12, 2012 01:53AM UTC by anonymous comment:5

I still get a type mismatch error on IE7 when doing

.css("z-index", "auto")