What we are attempting to do here is emulate the ability that Internet Explorer has to get the offsetTop & offsetLeft of a TextRange. As you are aware the Range object that Safari & Firefox implement does not have offsetTop & offsetLeft properties. In order to obtain this information, we temporarily insert a SPAN into a Range, calculate the offsetTop & offsetLeft properties of the newly inserted SPAN, and then remove the SPAN from our Range. BTW - If you know of a better way to get the approximate offsetTop & offsetLeft position of range, let us know.
Created attachment 20099 [details] Test case to obtain Range's offsetTop & offsetLeft position Issue occurs on both Windows & Macintosh platforms
<rdar://problem/5825391>
Confirmed issue in the latest WebKit r35417 for Mac OS X.