Open Bug 1851954 Opened 2 years ago Updated 2 years ago

Linear-gradient with alpha mask not converting to PDF properly

Categories

(Core :: Printing: Output, defect)

Firefox 117
defect

Tracking

()

Tracking Status
firefox117 --- affected
firefox118 --- affected
firefox119 --- affected

People

(Reporter: paul.bogg, Unassigned)

Details

Attachments

(3 files)

Attached file index_2.html

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36

Steps to reproduce:

CSS with linear-gradient that contain alpha masks does not convert properly to PDF.

  1. Open attached index_2.html in Firefox
  2. Save to PDF (e.g. CTRL-P --> Save to PDF)
  3. Open PDF - see that the PDF image does not match the browser rendering

Actual results:

  1. Open PDF - see that the PDF image does not match the browser rendering

Expected results:

PDF matches the browser

The Bugbug bot thinks this bug should belong to the 'Firefox::PDF Viewer' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → PDF Viewer
Attached image screenshoot issue.png

I've reproduced this issue on macOS 13, but not on Windows 10. It doesn't seem to be a regression, same behavior is present way back to Fx 81.0a1.

Severity: -- → S3
Status: UNCONFIRMED → NEW
Ever confirmed: true
Attached file bug1851954_mac.pdf

I opened the generated (on mac) pdf in Firefox, Chrome, Acrobat and Foxit and the result is the same: a red square is rendered.
And I can confirm that the generated pdf on Windows is correct.
So it's very likely not a pdf.js issue but an issue with Quartz.

Component: PDF Viewer → Printing: Output
Product: Firefox → Core
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: