DEV Community

Discussion on: A Colorful Textarea

Collapse
 
sfiquet profile image
Sylvie Fiquet

That's an interesting approach but it still needs refining. There is a problem with the text cursor in Safari (but not in Chrome or Firefox). It's not in the right place so it's really difficult to know where you're typing.

screenshot showing the cursor below the text

In the screenshot, the cursor is placed at the end of the text, as if I had just typed the exclamation mark. And of course, the more I type the worse it gets.

Collapse
 
iamschulz profile image
Daniel Schulz

True. Safari User Agent styles are funky.
Id some some more time with that browser to match everything, but the principle still applies.

Collapse
 
iamschulz profile image
Daniel Schulz

Got it.
Safari was the only browser that didn't set a monospaced font on <textarea> by default. Should be working now.

Collapse
 
sfiquet profile image
Sylvie Fiquet

Yes, it works fine now!