Bug Tracker

Modify

Ticket #4426 (closed bug: fixed)

Opened 4 years ago

Last modified 14 months ago

CSS "left" value is incorrect when set to "auto" in FF3.

Reported by: sharwood Owned by:
Priority: major Milestone: 1.4
Component: attributes Version: 1.3.2
Keywords: Cc:
Blocking: Blocked by:

Description

I have an absolute positioned element that has the following css:

#my-positioned-el {left:auto; right:0;}

When I try and get the "left" value in jQuery:

jQuery("#my-positioned-el").css("left");

I would expect to get back the "auto" value but instead I get a numeric value, like "43px".

Change History

comment:1 Changed 3 years ago by dmethvin

  • Component changed from unfiled to attributes

comment:2 Changed 3 years ago by addyosmani

  • Status changed from new to closed
  • Resolution set to fixed

I've recreated your above test case here:  http://jsfiddle.net/addyosmani/W9F6t/

Using both 1.3.2 and 1.4.2 in FireFox 3.6.10, both versions of jQuery appear to be returning the value 'auto' correctly.

Closing as this works fine for me and may have been failing due to another error (or possibly an earlier version of FireFox).

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.