Open
Bug 1716833
Opened 3 years ago
Updated 2 years ago
[XFA] Code-like text paragraphs are incorrectly underlined
Categories
(Firefox :: PDF Viewer, defect, P2)
Tracking
()
NEW
People
(Reporter: danibodea, Unassigned)
References
Details
(Whiteboard: [pdfjs-form-xfa])
Attachments
(5 files)
Note
- When the user loads a specific PDF that has a code-like text paragraph, he will notice that the whole paragraph is being underlined.
Affected versions
- Nightly v91.0a1
Affected platforms
- all
Steps to reproduce
- Launch browser.
- Flip the pdfjs.enableXfa to true.
- Load the attached PDF file.
- Observe the code-like paragraphs.
Expected result
- The code-like paragraphs are not being underlined.
Actual result
- The code-like paragraphs are displayed as underlined.
Regression range
- Not a recent regression, but an implementation flaw.
- I have to mention that in Beta v90.0b6 and v90.0b8, 6 out of 7 pages are being displayed (compared to how Adobe Reader loads it), but most of the page elements are missing.
Reporter | ||
Comment 1•3 years ago
|
||
Updated•3 years ago
|
Priority: -- → P2
Comment 2•3 years ago
|
||
This is because a container has a font with the underline property and a sub-container disables it.
But with CSS the sub-container "inherits" the text-decoration but cannot disable it:
https://developer.mozilla.org/en-US/docs/Web/CSS/text-decoration
so here we cannot rely on CSS but we must handle inheritance ourselves on the js side.
Reporter | ||
Comment 4•3 years ago
|
||
Recognizing as a generic xfa issue since the blocked bug is 1706133. Please change it if the case.
QA Whiteboard: [pdf_xfa_generic]
Comment 5•3 years ago
|
||
Reporter | ||
Comment 6•3 years ago
|
||
The issue is also seen here.
Reporter | ||
Comment 7•3 years ago
|
||
Updated•2 years ago
|
Whiteboard: [pdfjs-form-xfa]
You need to log in
before you can comment on or make changes to this bug.
Description
•