I also faced this issue recently, just out of curiosity I dived into this problem and found the reason why this issue is occurring.
In your example only, you can observe that with vertical scrollbar width of the div is 227.33px, you can check this using inspect element of chrome, and without scrollbar width of the div is 244.313. So when vertical scrollbar appears in the div, area in which text can appear in the div becomes smaller in size and hence to you it seems that even though the width of the div is sufficient to contain that much text then why it is elapsing the text. Actually, the area in which text can be written in the div becomes smaller i.e. of size “width of div” – “width of vertical scrollbar”.
When you set overflow-y=scroll, width of the div with and without scrollbar is same and hence it is not elapsing the text inside div.
When you set overflow-y=auto, text able area of the div becomes smaller with scrollbar and without scrollbar area becomes same as actual width*height of div and hence it is elapsing the text inside div with vertical scrollbar and not elapsing without scrollbar.
So to solve this issue, you can set tooltip on hover OR you can increase the width by some pixels. But as such it is not a problem of text-overflow:ellipsis feature. Ellipsis checks width of the area in which text can be written and compares it with the width of the text to be written.