When viewing the content in Internet Explorer (specifically tested in IE10), it appears that within a textarea, a space after a word is treated as part of the word itself when it comes to wrapping. The issue can be observed by comparing the following images:
On the left side, you'll see the textarea, and on the right side, a div with the same content as the textarea. In the first image, the word "vero" fits well in the line with "voluptua". However, after adding another word (or even just a space), "vero" moves to a newline, but only in the textarea, not the div. It's essential for me to calculate the height of the textarea, so having consistent word wrapping/line breaking behavior is crucial.
I've already attempted to apply the same word-wrap, white-space, line-break, -ms-word-break, word-break, and -ms-hyphens properties to both the textarea and div, but unfortunately, I haven't seen any positive results thus far.
Has anyone encountered this issue before and found a viable workaround?