-
Notifications
You must be signed in to change notification settings - Fork 10.3k
XFA - Fix auto-sized fields (bug 1722030) #13806
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
Conversation
calixteman
commented
Jul 27, 2021
- In order to better compute text fields size, use line height with no gaps (and consequently guessed height for text are slightly better in general).
- Fix default background color in fields.
A lot of failures are expected, overall it's an improvement, but of course if something is really bad, tell me. /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/393c30e0644ab34/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/5cb8e8165bab76b/output.txt |
From: Bot.io (Linux m4)FailedFull output at http://54.67.70.0:8877/393c30e0644ab34/output.txt Total script time: 26.70 mins
Image differences available at: http://54.67.70.0:8877/393c30e0644ab34/reftest-analyzer.html#web=eq.log |
There are some timeouts. |
/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/6b6153ea8532336/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/5bd6131c2b95a4e/output.txt |
From: Bot.io (Windows)FailedFull output at http://3.101.106.178:8877/5cb8e8165bab76b/output.txt Total script time: 38.16 mins
Image differences available at: http://3.101.106.178:8877/5cb8e8165bab76b/reftest-analyzer.html#web=eq.log |
From: Bot.io (Linux m4)FailedFull output at http://54.67.70.0:8877/6b6153ea8532336/output.txt Total script time: 33.29 mins
Image differences available at: http://54.67.70.0:8877/6b6153ea8532336/reftest-analyzer.html#web=eq.log |
From: Bot.io (Windows)FailedFull output at http://3.101.106.178:8877/5bd6131c2b95a4e/output.txt Total script time: 32.34 mins
Image differences available at: http://3.101.106.178:8877/5bd6131c2b95a4e/reftest-analyzer.html#web=eq.log |
Still some errors |
/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/042379177ea3723/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/fcd0644bf70e6fc/output.txt |
From: Bot.io (Windows)FailedFull output at http://3.101.106.178:8877/fcd0644bf70e6fc/output.txt Total script time: 32.01 mins
Image differences available at: http://3.101.106.178:8877/fcd0644bf70e6fc/reftest-analyzer.html#web=eq.log |
From: Bot.io (Linux m4)FailedFull output at http://54.67.70.0:8877/042379177ea3723/output.txt Total script time: 33.48 mins
Image differences available at: http://54.67.70.0:8877/042379177ea3723/reftest-analyzer.html#web=eq.log |
There are some errors on Windows, maybe intermittent? On A button at the end of Some text in |
- In order to better compute text fields size, use line height with no gaps (and consequently guessed height for text are slightly better in general). - Fix default background color in fields.
About the field colors:
There are several solutions here:
About |
That'd be my definite preference, since it seems like the simplest approach; unless this is a widespread problem in practice.
All of these ideas sound like they'd easily add a bunch of complexity (and overhead), thus negatively impacting code readability/maintainability. |
My worry is that if some fields have it and some fields don't, users might think the white ones are not fillable. It seems to be occurring in many PDFs (Canadian ones included, and they're between the most important we want to support). |
My opinion as a user is that we must be consistent. .xfaTextfield {
background-image: url('a.png'); /* a.png is a 1x1 image with a transparent blue */
}
.xfaTextfield:focus {
background-image: none;
} I have no idea of the impact on memory/perf but from a code pov I'd say it isn't that painful to maintain |
/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/7f4fb57d1503e0c/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/4d53839184c0520/output.txt |
From: Bot.io (Windows)FailedFull output at http://3.101.106.178:8877/7f4fb57d1503e0c/output.txt Total script time: 31.99 mins
Image differences available at: http://3.101.106.178:8877/7f4fb57d1503e0c/reftest-analyzer.html#web=eq.log |
From: Bot.io (Linux m4)FailedFull output at http://54.67.70.0:8877/4d53839184c0520/output.txt Total script time: 33.49 mins
Image differences available at: http://54.67.70.0:8877/4d53839184c0520/reftest-analyzer.html#web=eq.log |
I replaced png image by an inlined svg one: this way we can easily modify it if we need: Thanks to that change, the reftest are fine with one exception (at least locally): the one for |
/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/092c437812770d9/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/9489a0012503d14/output.txt |
From: Bot.io (Linux m4)FailedFull output at http://54.67.70.0:8877/092c437812770d9/output.txt Total script time: 33.43 mins
Image differences available at: http://54.67.70.0:8877/092c437812770d9/reftest-analyzer.html#web=eq.log |
It is happening with firefox-xfa_imm1295e-page1 too, is it only a reftest issue or is it occurring in the actual viewer too? |
From: Bot.io (Windows)FailedFull output at http://3.101.106.178:8877/9489a0012503d14/output.txt Total script time: 38.40 mins
Image differences available at: http://3.101.106.178:8877/9489a0012503d14/reftest-analyzer.html#web=eq.log |
There are also a few errors. |
Locally: there are no problem... pffff |
/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/7e213a1dc752b54/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/6562c837b514ffa/output.txt |
From: Bot.io (Linux m4)FailedFull output at http://54.67.70.0:8877/6562c837b514ffa/output.txt Total script time: 33.45 mins
Image differences available at: http://54.67.70.0:8877/6562c837b514ffa/reftest-analyzer.html#web=eq.log |
From: Bot.io (Windows)FailedFull output at http://3.101.106.178:8877/7e213a1dc752b54/output.txt Total script time: 38.99 mins
Image differences available at: http://3.101.106.178:8877/7e213a1dc752b54/reftest-analyzer.html#web=eq.log |
@calixteman can you check |
The chrome snapshot is ok for this one and locally there are no problems. |
/botio makeref |
From: Bot.io (Linux m4)ReceivedCommand cmd_makeref from @calixteman received. Current queue size: 0 Live output at: http://54.67.70.0:8877/d1c5cc9ededc5d6/output.txt |
From: Bot.io (Windows)ReceivedCommand cmd_makeref from @calixteman received. Current queue size: 1 Live output at: http://3.101.106.178:8877/a198e7565cf1c9d/output.txt |
From: Bot.io (Linux m4)SuccessFull output at http://54.67.70.0:8877/d1c5cc9ededc5d6/output.txt Total script time: 30.28 mins
|
From: Bot.io (Windows)FailedFull output at http://3.101.106.178:8877/a198e7565cf1c9d/output.txt Total script time: 29.09 mins
|