Check out this JSFiddle for more information
<textarea wrap="off" rows="5" style="border-radius: 4px">aaaaaaaaaaa
aaaaaaaaaaa
aaaaaaaaaaa
aaaaaaaaaaabbbbbbbbbaaaaaaaaaaabbbbbbbbbaaaaaaaaaaabbbbbbbbbaaaaaaaaaaabbbbbbbbbaaaaaaaaaaabbbbbbbbb
aaaaaaaaaaa
aaaaaaaaaaa
aaaaaaaaaaa
aaaaaaaaaaa
aaaaaaaaaaa
aaaaaaaaaaabbbbbbbbb
aaaaaaaaaaabbbbbbbbb
aaaaaaaaaaabbbbbbbbb
</textarea>
- Scroll to the middle of the text box
- Attempt to grab the horizontal scrollbar with your mouse
- You'll notice that you can't, due to the blinking text cursor behind it!
If you remove the border-radius style and retry, you will find that you are able to grab the horizontal scrollbar. It also begins functioning once you scroll to the very bottom.
This functionality works smoothly in Firefox. I opted to use the wrap attribute instead of CSS as it is the most compatible method across browsers, including IE11 (source: HTML Textarea horizontal scroll). Using CSS caused an issue in IE11 where pressing the return key produced a space instead of a new line.
Does anyone know how to resolve this issue in Chrome?
Edit: Bug has been resolved in Chrome version 52