Do you use a fixed font size, i.e. specified in px? If not, you also need to consider different text size options for each browser, which is likely to make the concept of line cropping superfluous. If it is fixed, then perhaps by looking at how many Ws you can fit and limit your text to this -3 and add an ellipsis, you don’t know what this list is for, so there’s one approach.
Personally, I would probably use overflow: hidden, as it covers all possible events and ensures that it will always support your format.
I suggest that the last option would be to keep tight control over what can be added to the list and prevent the occurrence of the problem in the first place. Prevention is better than cure, as they say, although probably useless.
Lazarus
source share