Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suggest text-rendering: geometricPrecision #42

Open
JoshData opened this issue Sep 13, 2017 · 0 comments
Open

Suggest text-rendering: geometricPrecision #42

JoshData opened this issue Sep 13, 2017 · 0 comments

Comments

@JoshData
Copy link

JoshData commented Sep 13, 2017

Thanks for this great library!

Seems like WebKit and Gecko are too smart and alter textarea text rendering for speed purposes, making it different from div rendering, unless the text-rendering CSS property is set to geometricPrecision.

It might be good to either forcibly set it (though I don't know if that will work) or recommend in the README that it be set by the user in their textarea CSS, e.g.:

textarea { text-rendering: geometricPrecision }

What I experienced was different line spacing between a textarea and the hidden div even though lineHeight was identical.

h/t https://stackoverflow.com/questions/25260908/mismatch-in-text-width-between-div-and-textarea

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant