Side navigation
#7861 closed bug (duplicate)
Opened December 29, 2010 03:01PM UTC
Closed January 08, 2011 04:13AM UTC
Last modified January 08, 2011 04:13AM UTC
FF 3.6.13 attempt to get the css("left") value
Reported by: | anonymous | Owned by: | anonymous |
---|---|---|---|
Priority: | low | Milestone: | |
Component: | css | Version: | 1.4.4 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
for example:
set $("#element").css({left:100, width:400});
get for this $("#element").attr("style") - return "left:100px; width:400px"
try get value for "width" $("#element").css("width") - return "400px"
but for "left" value $("#element").css("left") - return "0px"
Attachments (0)
Change History (5)
Changed December 29, 2010 03:20PM UTC by comment:1
Changed December 30, 2010 02:18AM UTC by comment:2
owner: | → anonymous |
---|---|
status: | new → pending |
As per the bug reporting instructions in the big red box, please provide a test case on jsFiddle.
Changed December 30, 2010 02:20PM UTC by comment:3
http://jsfiddle.net/7VGY2/17/ in Firefox 3.6.13
Changed January 08, 2011 04:13AM UTC by comment:4
component: | unfiled → css |
---|---|
milestone: | 1.6 |
priority: | undecided → low |
resolution: | → duplicate |
status: | pending → closed |
Thanks for the test case. As there is way more information on this issue on a newer ticket I close this one as duplicate. See the ticket mentioned below for progress on this issue.
<div id="element" style="position:absolute"></div>
for example: set $("#element").css({left:100, width:400});
get for this $("#element").attr("style") - return "position: absolute; left: 100px; width: 400px;" - ok
$("#element").css("width") - return "400px" - ok
$("#element").css("left") - return "0px" - ?
$("#element").position().left = return 0 - ?
$("#element").position().offset() - return 0 - ?
but $("#element").style.left - return 100