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)

Desktop
All
defect

Tracking

()

Tracking Status
firefox89 --- disabled
firefox90 --- affected
firefox91 --- affected

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

  1. Launch browser.
  2. Flip the pdfjs.enableXfa to true.
  3. Load the attached PDF file.
  4. 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.
Priority: -- → P2

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.

Recognizing as a generic xfa issue since the blocked bug is 1706133. Please change it if the case.

QA Whiteboard: [pdf_xfa_generic]

The issue is also seen here.

Whiteboard: [pdfjs-form-xfa]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: