Bug Tracker

Opened 14 years ago

Closed 13 years ago

Last modified 12 years ago

#5674 closed bug (invalid)

css('z-index') returns incorrect value in Safari

Reported by: tomsomething Owned by:
Priority: major Milestone: 1.4
Component: attributes Version: 1.3.2
Keywords: css, z-index, safari Cc:
Blocked by: Blocking:


Safari 3 Mac. When an element has its z-index set in an external stylesheet or in <style> tags, .css('z-index') returns 'auto' instead of the correct value. If the z-index is defined inline like '<div style="z-index:100;">', there is no problem. .css('z-index',whatever) works fine for setting the z-index.

Change History (3)

comment:1 Changed 14 years ago by tomsomething

Setting "position" to "absolute" or "relative" will resolve this.

comment:2 Changed 13 years ago by dmethvin

Component: unfiledattributes
Resolution: invalid
Status: newclosed

This doesn't seem related to jQuery, has a bug been filed with Safari?

comment:3 Changed 12 years ago by ToasT

When setting "position" to "relative" or "absolute" be sure to correct auto alignment for cross browser compatibility where needed i.e "vertical-align" to "top" and "text-align" to "left".

Note: See TracTickets for help on using tickets.