I am encountering an issue with a div element that has defined left and top values, without absolute position, and I am trying to retrieve these values using jQuery.
When using $("#MyId").css("left")
, I expected the result to be correct in IE browser (IE8), but it returned "auto" in Chrome even though the values are clearly stated in the element's style.
To see this discrepancy, you can check out the test case here: http://jsfiddle.net/qCDkb/2/
The difference between IE and Chrome behavior is quite noticeable.
It seems that this issue occurs in jQuery versions 1.4.3 and above, whereas version 1.4.2 works just fine.
If anyone has any insights on how to address this problem, please share! :-)