Bug Tracker

Modify

Ticket #6684 (closed bug: fixed)

Opened 4 years ago

Last modified 4 years ago

css("top") (and similar getters) returns different values in different browsers

Reported by: szajmon Owned by:
Priority: Milestone: 1.4.3
Component: css Version: 1.4.2
Keywords: css, position, browser Cc:
Blocking: Blocked by:

Description

if I do not specify certain elements' position values (top, left, etc.) in the CSS, then, when getting for example $(this).css("top"), different browsers give different values: in firefox (3.6.3) it returns a value, like 110px, while in ie8 and chrome it returns 'auto'.

see attached file in the mentioned browsers for a demo.

this difference can cause serious problems when using this value later.

Attachments

jquery-css-bug.html Download (1.2 KB) - added by szajmon 4 years ago.
demo for the bug report

Change History

Changed 4 years ago by szajmon

demo for the bug report

comment:1 Changed 4 years ago by john

  • Status changed from new to closed
  • Version changed from 1.4.1 to 1.4.2
  • Resolution set to fixed
  • Milestone changed from 1.4.1 to 1.4.3

This was resolved in the CSS rewrite that landed recently.

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.