Skip to main content

Bug Tracker

Side navigation

#4426 closed bug (fixed)

Opened March 26, 2009 06:44AM UTC

Closed October 08, 2010 01:18AM UTC

Last modified March 14, 2012 02:20PM UTC

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

Attachments (0)
Change History (2)

Changed June 12, 2010 02:05PM UTC by dmethvin comment:1

component: unfiledattributes

Changed October 08, 2010 01:18AM UTC by addyosmani comment:2

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