WebKit window.webkitConvertPointFromNodeToPage, , , . , node : inline, .
(, , , webkitConvertPointFromNodeToPage WebKit).
, , , display: inline-block, , , .
- , !
Edit:
, , :
var offset = {x: 0, y: 0};
if ( getStyle(el, 'display') == 'inline' ) {
offset.x = el.offsetLeft - el.parentNode.offsetLeft;
offset.y = el.offsetTop - el.parentNode.offsetTop;
}
var point = window.webkitConvertPointFromNodeToPage(el, new WebKitPoint(0, 0));
return {
x: Math.round(point.x + offset.x),
y: Math.round(point.y + offset.y)
}
inline child offsetTop/Left . , , : , 90% .
- , - .