#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: |
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 (3)
comment:1 Changed 13 years ago by
comment:2 Changed 13 years ago by
Component: | unfiled → attributes |
---|---|
Resolution: | → invalid |
Status: | new → closed |
This doesn't seem related to jQuery, has a bug been filed with Safari?
comment:3 Changed 11 years ago by
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.
Setting "position" to "absolute" or "relative" will resolve this.