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

long text lines are shifted badly, only on safari #2732

Closed
Zazcallabah opened this issue Oct 19, 2021 · 7 comments
Closed

long text lines are shifted badly, only on safari #2732

Zazcallabah opened this issue Oct 19, 2021 · 7 comments

Comments

@Zazcallabah
Copy link

Zazcallabah commented Oct 19, 2021

Bug reports:

We are seeing a strange text-wrapping bug in safari only. The rendered image text is shifted around compared to the html source, like in this image:
image

The upper section is a p-tag/span-tag combo. The lower section is the resulting image. Note how any line long enough to wrap to a new line are shifted to the right, and the end of some lines are cut slightly early.

Specifications:

  • html2canvas version tested with: 1.3.2
  • Browser & version: Safari
  • Operating system: iphone 12, desktop mac
@Zazcallabah
Copy link
Author

This fiddle should demonstrate the issue if viewed on ios safari iphone https://jsfiddle.net/drbkjs8t/3/

@Zazcallabah Zazcallabah changed the title long text lines are shifted badly, only on ios mobile devices long text lines are shifted badly, only on safari Oct 26, 2021
@Zazcallabah
Copy link
Author

The issue is also present on desktop safari.

@xiaozhanghui
Copy link

me too,i set [email protected] to fixed it

@mormormmmr
Copy link

It's the same for me.
It reproduces with [email protected] and v1.0.0-rc.7.
Versions earlier than [email protected] do not reproduce it.
However, prior to v1.0.0-rc.6, there is another bug that prevents me from using it.

I will be very happy if it is fixed.
Thanks for the great tool and development.

@dreamvibe1993
Copy link

Almost the same issue right here
image

@chea1tei
Copy link

chea1tei commented Dec 6, 2021

Anyone have any solution to this? Im using contenteditable and my text are having the same issue in safari as

@niklasvh
Copy link
Owner

niklasvh commented Jan 1, 2022

This should be fixed with #2786

@niklasvh niklasvh closed this as completed Jan 1, 2022
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

6 participants