Bug Tracker

Opened 13 years ago

Closed 11 years ago

Last modified 10 years ago

#4426 closed bug (fixed)

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:
Blocked by: Blocking:

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 (2)

comment:1 Changed 11 years ago by dmethvin

Component: unfiledattributes

comment:2 Changed 11 years ago by addyosmani

Resolution: fixed
Status: newclosed

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).

Note: See TracTickets for help on using tickets.