For instance :
<div>
<span style="font-size: 20pt" id="BBB">Hello</span>
<span style="font-size: 5pt; vertical-align: middle;" id="AAA">World</span>
</div>
From the element BBB it's easy to get the line boundaries as BBB is the taller element of the line. Its offsetTop and offsetHeight properties are the line boundaries.
But how to get the line boundaries from the element AAA ?
Can I get that info directly, or do I have to loop through the elements of the line ?