Skip to content
New issue

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

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

Already on GitHub? # to your account

Text not correctly truncated if text-transform in use #93

Open
MuffinFox opened this issue Mar 5, 2021 · 1 comment
Open

Text not correctly truncated if text-transform in use #93

MuffinFox opened this issue Mar 5, 2021 · 1 comment
Labels

Comments

@MuffinFox
Copy link

MuffinFox commented Mar 5, 2021

Using text-transform CSS property is not applied to canvas text, therefore text might be truncated incorrectly.

Example using text-transform: uppercase:
https://codesandbox.io/s/texttruncate-forked-doxrn

@ShinyChang
Copy link
Owner

Hi @MuffinFox , thanks for reporting the issue. Will take the time to apply text-transform to canvas text. Feel free to submit the PR if you want.

@ShinyChang ShinyChang added the bug label Mar 10, 2021
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants