Bug Tracker

Modify

Ticket #5674 (closed bug: invalid)

Opened 3 years ago

Last modified 14 months ago

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

comment:1 Changed 3 years ago by tomsomething

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

comment:2 Changed 3 years ago by dmethvin

  • Status changed from new to closed
  • Resolution set to invalid
  • Component changed from unfiled to attributes

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

comment:3 Changed 18 months 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".

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.