There should be a separator space between radio buttons/checkboxes and their labels/strings
Categories
(Firefox :: PDF Viewer, defect, P3)
Tracking
()
| Accessibility Severity | s4 |
People
(Reporter: danibodea, Unassigned, Mentored, NeedInfo)
References
Details
(Keywords: access, Whiteboard: [pdfjs-form-xfa][pdfjs-accessibility] [good-first-bug])
Attachments
(12 files)
|
203.39 KB,
image/png
|
Details | |
|
2.29 MB,
application/pdf
|
Details | |
|
341.73 KB,
image/png
|
Details | |
|
1.84 MB,
application/pdf
|
Details | |
|
255.82 KB,
image/png
|
Details | |
|
1.49 MB,
application/pdf
|
Details | |
|
363.45 KB,
image/png
|
Details | |
|
264.30 KB,
application/pdf
|
Details | |
|
1.19 MB,
application/pdf
|
Details | |
|
32.63 KB,
application/pdf
|
Details | |
|
44 bytes,
text/x-github-pull-request
|
Details | Review | |
|
44 bytes,
text/x-github-pull-request
|
Details | Review |
Note
- When the user loads the corresponding PDF file, he will notice that the placeholder texts are not being displayed.
Affected versions
- Nightly v91.0a1
Affected platforms
- all
Steps to reproduce
- Launch browser.
- Flip the pdfjs.enableXfa to true.
- Load the attached PDF file.
Expected result
- The placeholder texts from inside the name and date fields are correctly displayed.
Actual result
- The placeholder texts from inside the name and date fields are missing.
Regression range
- Not a recent regression, but an implementation flaw.
Updated•5 years ago
|
| Reporter | ||
Updated•5 years ago
|
| Reporter | ||
Comment 1•5 years ago
|
||
This issue also occurs here and it has a considerable influence on aesthetics.
| Reporter | ||
Comment 2•5 years ago
|
||
| Reporter | ||
Comment 3•4 years ago
|
||
Another example where the labels are too close to the controls.
| Reporter | ||
Comment 4•4 years ago
|
||
| Reporter | ||
Comment 5•4 years ago
|
||
This issue is also observed in this PDF.
| Reporter | ||
Comment 6•4 years ago
|
||
Updated•4 years ago
|
Updated•4 years ago
|
Updated•3 years ago
|
Comment 7•2 years ago
|
||
I'm flagging this as a good-first-bug. It looks like we just need to add some margin in viewer.css. The pref mentioned in comment 0 is already true, so you just need to open attachment 9232832 [details] and inspect the result in devtools' inspector.
To get started, you'll need a working dev environment and a local build of firefox. You can follow the docs here to get that setup. You can leave a comment here on the bug stating your intention to work on it. It will be assigned to you once you submit a patch. If you have questions, feel free to need-info me here (check the "request information from" box on this bug form.)
Something along these lines seems to work:
:is(.xfaRight) > :is(.xfaCaption, .xfaCaptionForCheckButton) {
margin-left: 2px;
}
:is(.xfaLeft) > :is(.xfaCaption, .xfaCaptionForCheckButton) {
margin-right: 2px;
}
I added the second rule for RTL but could not find samples to test with.
Updated•2 years ago
|
Comment 9•2 years ago
|
||
Hi, I'll be working on this bug and will submit a patch soon.
Comment 10•2 years ago
|
||
Comment 11•2 years ago
|
||
Comment 12•2 years ago
|
||
Comment 13•2 years ago
|
||
Hi Sam,
I'm having a difficult time reproducing this bug. Unfortunately, I can't access any of the previously attached PDFs, but I was able to find the two Canadian forms that Daniel Bodea shared above (I've attached both). These forms seems to be rendering correctly in my local Firefox build. Do you have any suggestions?
Comment 14•2 years ago
|
||
You can use the pdf in bug 1721636.
For your information, you must set up pdf.js locally, fix the bug and make a PR:
https://github.com/mozilla/pdf.js/
Comment 15•2 years ago
•
|
||
:Joseph, you must:
- get the code: https://github.com/mozilla/pdf.js/?tab=readme-ov-file#getting-the-code
- copy the pdf in bug 1721636 in the directory
test/pdfs/, asbug1721638.pdf - open http://localhost:8888/web/viewer.html?file=/test/pdfs/bug1721638.pdf
Now you can hack on whatever css/js/html file.
Once your patch is ready, you just have to submit a PR and few days after your change will be available in Firefox (we make at least one release per week).
Comment 16•2 years ago
|
||
Thank you for the additional information, Calixte. Much appreciated! My plan is to submit the PR today. I'll let you know if I have any additional questions.
Comment 17•2 years ago
|
||
I just submitted a pull request for this bug. Note: my changes do not address the missing placeholder text.
https://github.com/mozilla/pdf.js/pull/17948
Thanks!
Updated•2 years ago
|
Comment 18•1 year ago
|
||
The bug assignee is inactive on Bugzilla, so the assignee is being reset.
Comment 19•1 year ago
|
||
This looks interesting. I would love to be assigned!
Comment 20•1 year ago
|
||
I found another bug to work on. Clearing needinfo.
Comment 21•1 year ago
|
||
I just submitted a pull request and would like to be assigned!
Comment 22•1 year ago
|
||
:Gautam, as mentioned in the PR review, did you check the output of npx gulp xfatest ?
Comment 23•1 year ago
|
||
(In reply to Calixte Denizet (:calixte) from comment #22)
:Gautam, as mentioned in the PR review, did you check the output of
npx gulp xfatest?
I did - just replied in the PR with details.
Comment 24•9 months ago
|
||
I'm removing the previous assignee, as I'm not sure he's working on this any longer. A new contributor will be working on this patch instead.
Comment 25•9 months ago
|
||
Hi all,
I'll be contributing to this patch.
Thanks!
Comment 26•9 months ago
|
||
Comment 27•9 months ago
|
||
I just submitted a pull request and would appreciate some feedback!
Thanks!
Comment 28•4 months ago
|
||
Comment 29•4 months ago
|
||
I've submitted a pull request for this bug: https://github.com/mozilla/pdf.js/pull/20963
The fix adds a non-breaking space before checkbox/radio-button labels in template.js to create the separator space.
Comment 30•4 months ago
|
||
(In reply to japandi from comment #29)
I've submitted a pull request for this bug: https://github.com/mozilla/pdf.js/pull/20963
The fix adds a non-breaking space before checkbox/radio-button labels in template.js to create the separator space.
Description
•