Hurray,
element.getBoundingClientRect() .
<div onclick="firstElementChild.innerHTML = firstElementChild.getBoundingClientRect().top" style="overflow:scroll;height:100%;">
<div style="background:#aaf;height:100px;"></div>
<div style="height:1000px;"></div>
</div>