-
Notifications
You must be signed in to change notification settings - Fork 10k
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
Annotation & XFA: Scale the font size in choicelist using zoom factor (bug 1715996) #13868
Conversation
calixteman
commented
Aug 4, 2021
- this is an accessibility issue which could be painful for some people with visual disabilities.
web/base_viewer.js
Outdated
@@ -694,6 +694,8 @@ class BaseViewer { | |||
} | |||
|
|||
_setScaleUpdatePages(newScale, newValue, noScroll = false, preset = false) { | |||
document.documentElement.style.setProperty("--zoom-factor", newScale); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
First of all, please move this down to just after the if (isSameScale(...)) { ... }
block below, since there's no good reason to update this unconditionally as far as I can tell.
Secondly, let's add this._doc = document.documentElement;
after e.g.
Line 204 in 52ef63f
} |
Also, this won't work when PDFPageView
is being used standalone. Ideally we should probably move this code into PDFPageView.update
instead, but I'm not sure if repeatedly setting the CSS variable (to the same value) is an issue performance-wise?
However, I'd be OK with deferring this point for now in the interest of getting it fixed in a timely manner.
web/viewer.css
Outdated
@@ -16,6 +16,8 @@ | |||
@import url(pdf_viewer.css); | |||
|
|||
:root { | |||
--zoom-factor: 1; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This needs to be placed in pdf_viewer.css
instead, since otherwise you're breaking the standalone viewer components.
/botio test |
From: Bot.io (Linux m4)ReceivedCommand cmd_test from @Snuffleupagus received. Current queue size: 0 Live output at: http://54.67.70.0:8877/afddeed44d80c81/output.txt |
From: Bot.io (Windows)ReceivedCommand cmd_test from @Snuffleupagus received. Current queue size: 0 Live output at: http://3.101.106.178:8877/e126d74dc1b3bb4/output.txt |
From: Bot.io (Windows)FailedFull output at http://3.101.106.178:8877/e126d74dc1b3bb4/output.txt Total script time: 33.20 mins
Image differences available at: http://3.101.106.178:8877/e126d74dc1b3bb4/reftest-analyzer.html#web=eq.log |
From: Bot.io (Linux m4)FailedFull output at http://54.67.70.0:8877/afddeed44d80c81/output.txt Total script time: 34.85 mins
Image differences available at: http://54.67.70.0:8877/afddeed44d80c81/reftest-analyzer.html#web=eq.log |
There seem to be one regression in |
Yep, I forgot to set the font size only for combo choicelist. |
/botio test |
From: Bot.io (Linux m4)ReceivedCommand cmd_test from @calixteman received. Current queue size: 0 Live output at: http://54.67.70.0:8877/9769fd7e81c6223/output.txt |
From: Bot.io (Windows)ReceivedCommand cmd_test from @calixteman received. Current queue size: 0 Live output at: http://3.101.106.178:8877/a011d5bca46d56a/output.txt |
From: Bot.io (Linux m4)FailedFull output at http://54.67.70.0:8877/9769fd7e81c6223/output.txt Total script time: 34.77 mins
Image differences available at: http://54.67.70.0:8877/9769fd7e81c6223/reftest-analyzer.html#web=eq.log |
It looks like you forgot to push the changes? Also, a couple of the |
From: Bot.io (Windows)FailedFull output at http://3.101.106.178:8877/a011d5bca46d56a/output.txt Total script time: 39.96 mins
Image differences available at: http://3.101.106.178:8877/a011d5bca46d56a/reftest-analyzer.html#web=eq.log |
/botio test |
From: Bot.io (Linux m4)ReceivedCommand cmd_test from @calixteman received. Current queue size: 0 Live output at: http://54.67.70.0:8877/0bcf82be5692316/output.txt |
From: Bot.io (Windows)ReceivedCommand cmd_test from @calixteman received. Current queue size: 0 Live output at: http://3.101.106.178:8877/e1f5eb540e1a61a/output.txt |
From: Bot.io (Linux m4)FailedFull output at http://54.67.70.0:8877/0bcf82be5692316/output.txt Total script time: 26.13 mins
Image differences available at: http://54.67.70.0:8877/0bcf82be5692316/reftest-analyzer.html#web=eq.log |
/botio-linux test |
From: Bot.io (Linux m4)ReceivedCommand cmd_test from @calixteman received. Current queue size: 0 Live output at: http://54.67.70.0:8877/2161bac77c3f2f8/output.txt |
From: Bot.io (Windows)FailedFull output at http://3.101.106.178:8877/e1f5eb540e1a61a/output.txt Total script time: 38.91 mins
Image differences available at: http://3.101.106.178:8877/e1f5eb540e1a61a/reftest-analyzer.html#web=eq.log |
From: Bot.io (Linux m4)FailedFull output at http://54.67.70.0:8877/2161bac77c3f2f8/output.txt Total script time: 33.46 mins
Image differences available at: http://54.67.70.0:8877/2161bac77c3f2f8/reftest-analyzer.html#web=eq.log |
/botio-linux preview |
From: Bot.io (Linux m4)ReceivedCommand cmd_preview from @calixteman received. Current queue size: 0 Live output at: http://54.67.70.0:8877/94f1f691698295b/output.txt |
From: Bot.io (Linux m4)SuccessFull output at http://54.67.70.0:8877/94f1f691698295b/output.txt Total script time: 5.14 mins Published |
… (bug 1715996) - this is an accessibility issue which could be painful for some people with visual disabilities.
/botio test |
From: Bot.io (Linux m4)ReceivedCommand cmd_test from @calixteman received. Current queue size: 0 Live output at: http://54.67.70.0:8877/e17dd845fc3c2c1/output.txt |
From: Bot.io (Windows)ReceivedCommand cmd_test from @calixteman received. Current queue size: 1 Live output at: http://3.101.106.178:8877/14537e4295eec8b/output.txt |
I thought adding font-size stuff on an |
From: Bot.io (Linux m4)FailedFull output at http://54.67.70.0:8877/e17dd845fc3c2c1/output.txt Total script time: 26.23 mins
Image differences available at: http://54.67.70.0:8877/e17dd845fc3c2c1/reftest-analyzer.html#web=eq.log |
From: Bot.io (Windows)FailedFull output at http://3.101.106.178:8877/14537e4295eec8b/output.txt Total script time: 32.46 mins
Image differences available at: http://3.101.106.178:8877/14537e4295eec8b/reftest-analyzer.html#web=eq.log |
/botio test |
From: Bot.io (Windows)ReceivedCommand cmd_test from @calixteman received. Current queue size: 0 Live output at: http://3.101.106.178:8877/b4d0638614dda26/output.txt |
From: Bot.io (Linux m4)ReceivedCommand cmd_test from @calixteman received. Current queue size: 0 Live output at: http://54.67.70.0:8877/0a89046e18bda03/output.txt |
From: Bot.io (Linux m4)FailedFull output at http://54.67.70.0:8877/0a89046e18bda03/output.txt Total script time: 33.49 mins
Image differences available at: http://54.67.70.0:8877/0a89046e18bda03/reftest-analyzer.html#web=eq.log |
From: Bot.io (Windows)FailedFull output at http://3.101.106.178:8877/b4d0638614dda26/output.txt Total script time: 39.11 mins
Image differences available at: http://3.101.106.178:8877/b4d0638614dda26/reftest-analyzer.html#web=eq.log |
The differences are due to the fact we use the fontsize from the pdf. |
/botio-linux preview |
From: Bot.io (Linux m4)ReceivedCommand cmd_preview from @calixteman received. Current queue size: 0 Live output at: http://54.67.70.0:8877/00bcf1864098081/output.txt |
From: Bot.io (Linux m4)SuccessFull output at http://54.67.70.0:8877/00bcf1864098081/output.txt Total script time: 5.13 mins Published |
Given that documents likely won't contain more than perhaps a handful of these form elements per page, and that we unload pages that aren't visible, I'm not sure if this really is a going to be a big problem. |
/botio makeref |
From: Bot.io (Linux m4)ReceivedCommand cmd_makeref from @Snuffleupagus received. Current queue size: 0 Live output at: http://54.67.70.0:8877/ec51d41b2f106da/output.txt |
From: Bot.io (Windows)ReceivedCommand cmd_makeref from @Snuffleupagus received. Current queue size: 0 Live output at: http://3.101.106.178:8877/3b5b2ff0aff2b0f/output.txt |
From: Bot.io (Linux m4)SuccessFull output at http://54.67.70.0:8877/ec51d41b2f106da/output.txt Total script time: 30.38 mins
|
From: Bot.io (Windows)SuccessFull output at http://3.101.106.178:8877/3b5b2ff0aff2b0f/output.txt Total script time: 36.84 mins
|