Hacker News new | ask | show | jobs
by blago 5477 days ago
Or it can be quite simple. Note that we are talking about overflow: text that given the CSS on the page would become invisible. This knowledge is already present in the rendering subsystem because it has to decide what gets displayed.

The only trick is to open up enough space at the end of the line to render the ellipsis. It's not rocket science to do it well enough.