Modify ↓
Ticket #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: | |
| Blocking: | Blocked by: |
Description
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
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
Note: See
TracTickets for help on using
tickets.

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