Skip to main content

Search and Top Navigation

#5110 closed bug (fixed)

Opened January 29, 2010 04:42PM UTC

Closed January 29, 2010 07:24PM UTC

zIndex() only checks inline style, and ignores CSS

Reported by: btburnett3 Owned by:
Priority: minor Milestone: 1.8
Component: ui.core Version: 1.8rc1
Keywords: zIndex Cc:
Blocked by: Blocking:

zIndex() uses to test for the z-index style on each element as it traverses up the tree. Using css() makes more sense, since this will get effective style including z-index applied via CSS.

Attachments (0)
Change History (2)

Changed January 29, 2010 06:50PM UTC by btburnett3 comment:1

Fixed in r3755

Fix does two things. First, it uses css() to get the z-index so that effective styles are used instead of only inline styles.

Second, it now only pays attention to a z-index setting if the element is positioned (absolute, relative, or fixed). The z-index setting is actually ignored if the element isn't positioned, and WebKit browsers will always return "auto" from getCurrentStyle().zIndex if the element isn't positioned, no matter what it has been set to. By checking this style it makes behavior consistent across browsers.

Changed January 29, 2010 07:24PM UTC by rdworth comment:2

resolution: → fixed
status: newclosed