When I use getComputedStyle on an element that has defined properties for left
, right
, and bottom
,
I noticed that Chrome returns 'auto'
as the value for top
, whereas Firefox returns the pixel value. However, interestingly, the top
value does not show up in the computed pane when inspected in Firefox.
Is there a workaround for this discrepancy? Check out this fiddle to see the issue: http://jsfiddle.net/DEfusion/9NaGD/