Skip to content

Prevent mobile devices from interfering with the textLayer-elements (issue 14243) #14244

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

Merged
merged 1 commit into from
Nov 6, 2021

Conversation

Snuffleupagus
Copy link
Collaborator

This is a tentative patch, since I don't have the necessary hardware to test it.

See https://developer.mozilla.org/en-US/docs/Web/CSS/text-size-adjust, which is currently ignored in Firefox.
It seems overall safer, and more future-proof, to simply add this to the entire textLayer rather than its individual elements.

Fixes #14243

…issue 14243)

*This is a tentative patch, since I don't have the necessary hardware to test it.*

See https://developer.mozilla.org/en-US/docs/Web/CSS/text-size-adjust, which is currently ignored in Firefox.
It seems overall safer, and more future-proof, to simply add this to the *entire* `textLayer` rather than its individual elements.
@Snuffleupagus
Copy link
Collaborator Author

/botio-linux preview

@pdfjsbot
Copy link

pdfjsbot commented Nov 6, 2021

From: Bot.io (Linux m4)


Received

Command cmd_preview from @Snuffleupagus received. Current queue size: 0

Live output at: http://54.241.84.105:8877/6ca1a9dbdc089cd/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Nov 6, 2021

From: Bot.io (Linux m4)


Success

Full output at http://54.241.84.105:8877/6ca1a9dbdc089cd/output.txt

Total script time: 5.31 mins

Published

@shivaprsd
Copy link

@Snuffleupagus Does this automatically add the prefixed version? The unprefixed version is not recognised by iOS Safari.

@Snuffleupagus
Copy link
Collaborator Author

Does this automatically add the prefixed version?

Of course, which is clear if you look at the generated file: http://54.241.84.105:8877/6ca1a9dbdc089cd/web/viewer.css

@timvandermeij
Copy link
Contributor

I have tested this with Firefox Nightly on Android and found no difference before/after, which is good because as the bug report mentioned this seems to only affect iOS devices. I don't have such a device to confirm this works. @shivaprsd Could you test the preview link above and see if that fixes the issue?

@shivaprsd
Copy link

@timvandermeij I can confirm that it fixes the issue in Viewer (legacy). 👍🏼
Should be GTG in the modern viewer also.

@timvandermeij timvandermeij merged commit b820beb into mozilla:master Nov 6, 2021
@timvandermeij
Copy link
Contributor

Thanks!

@Snuffleupagus Snuffleupagus deleted the issue-14243 branch November 6, 2021 19:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Random textLayer inflation in iOS Safari
4 participants