#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 13 years ago by
Component: | unfiled → attributes |
---|
comment:2 Changed 12 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
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).