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

Replace the --viewport-scale-factor CSS variable #14780

Merged

Conversation

Snuffleupagus
Copy link
Collaborator

This CSS variable is only used together with the annotationCanvasMap-functionality in the canvas-code, however its value can be trivially computed by using the older --zoom-factor CSS variable together with the PixelsPerInch-structure.
Rather than having two different CSS variables that are this closely linked, it seems better to simplify things by using just one CSS variable instead.

This CSS variable is only used together with the `annotationCanvasMap`-functionality in the canvas-code, however its value can be *trivially* computed by using the older `--zoom-factor` CSS variable together with the `PixelsPerInch`-structure.
Rather than having *two different* CSS variables that are this closely linked, it seems better to simplify things by using just one CSS variable instead.
@timvandermeij
Copy link
Contributor

/botio-linux preview

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Received

Command cmd_preview from @timvandermeij received. Current queue size: 1

Live output at: http://54.241.84.105:8877/2fb970fc4c36297/output.txt

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Success

Full output at http://54.241.84.105:8877/2fb970fc4c36297/output.txt

Total script time: 2.61 mins

Published

@timvandermeij timvandermeij merged commit 3f5c31e into mozilla:master Apr 14, 2022
@timvandermeij
Copy link
Contributor

Thank you for doing all this CSS clean-up; really nice!

@Snuffleupagus Snuffleupagus deleted the rm-CSS-viewport-scale-factor branch April 14, 2022 20:29
@Snuffleupagus
Copy link
Collaborator Author

Thank you for doing all this CSS clean-up; really nice!

As always, thank you for reviewing and merging these patches :-)


Also, I think that there's most likely a bunch of additional clean-up, simplification, and modernization possible for the CSS rules.
It's just that finding these cases, and then testing that any changes are correct, can be quite tedious and time-consuming.

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

Successfully merging this pull request may close these issues.

None yet

3 participants