Is there a js or jQuery function that will detect if the innerHTML or text is within a certain # of pixels from being clipped by its container?
I will need to do this for a few hundred elements on a page, so performance is a bit important.
Example - determine if the text in this <td>
is within 5px of exceeding its width:
<td class="cell">
12,3423
</td>
.cell {
width: 20px;
}