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

Fix the issue where TextNode does not render when it is an empty string and the line-height issue in non-Firefox browsers; also, fix the misalignment of textDecorationLine at high resolutions. #23

Merged
merged 3 commits into from
Jul 18, 2024

Conversation

xweiba
Copy link
Contributor

@xweiba xweiba commented Jul 18, 2024

Summary

This PR fixes/implements the following bugs/features

  • Bug Fix the issue of TextNode content being overlooked in rendering due to being perceived as blank by trim().
  • Resolving the line-height issue of TextNode in non-Firefox browsers by utilizing element heights.
  • Correcting the issue of textDecorationLine displaying offsets on high-resolution devices by utilizing element heights.

Closing issues

Fixes #2238 #1624 #2107

…d in rendering due to being perceived as blank by trim().
…rors on high-resolution devices due to varying devicePixelRatio, corrected by using relative values of element heights.
@yorickshan yorickshan merged commit 1c97647 into yorickshan:main Jul 18, 2024
6 checks passed
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

Successfully merging this pull request may close these issues.

html2canvas text with underline does't work
2 participants