display custom selection area on html page using javascript
<p>On an html page, can I calculate an invidual character's x,y coordinates and its render size on screen ? </p>

<p>I am asking this question because I was wondering how google docs does it ? If you look inspect selected region in google docs, it places an overlay on the selected region. I couldn't figure out how they do it. </p>

<p>Google search does not return anything relevant. May be I am not searching for the right thing!</p>

<p>Any clues ? </p>

<p>Thanks,
Parth</p>
