#7861 closed bug (duplicate)
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"
Change History (5)
comment:1 Changed 12 years ago by
comment:2 Changed 12 years ago by
Owner: | set to anonymous |
---|---|
Status: | new → pending |
As per the bug reporting instructions in the big red box, please provide a test case on jsFiddle.
comment:4 Changed 12 years ago by
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.
Note: See
TracTickets for help on using
tickets.
<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