jquery/jquery — comment on commit 7f6a991313380b74d5fb18782fb6b99fd6c4a22d
File:  line 0
By heygrady:

This issue also affects top, bottom, left, right, and text-indent. There may be others. From what I could gather it's related to WebKet using "computed value" instead of "used value." According to the [MDN article on getComputedStyle](https://developer.mozilla.org/en/DOM/window.getComputedStyle) it's supposed to use [used values](https://developer.mozilla.org/en/CSS/used_value) but it appears that WebKit is returning [computed values](https://developer.mozilla.org/en/CSS/computed_value) instead. The MDN article explains that it's ok to return percentages for the computed style in a few cases. Not surprisingly, those are the same cases that WebKit returns percentages.

The fix that was committed will fix the majority of cases if it wasn't filtered specifically to the margin property. It won't fix [top](https://developer.mozilla.org/en/CSS/top) and bottom because they are relative to the innerHeight of the parent.

I wrote a [blog article discussing a more robust fix for this issue](http://heygrady.com/blog/2011/12/21/length-and-angle-unit-conversion-in-javascript/). I hope this is helpful. The jQuery bug tracker thinks I'm spamming you but I think this is useful information.