Similar to Determine if an HTML element's content overflows, how can you find the index position of the element that overflows?
Example: If we have a long string inside a div that overflows at the 100th character, how can I find that position?
Edit: More detail because @dfsq asked: I'm trying to create a nice plain text reader, with page flipping.