Closed Bug 1490481 Opened 7 years ago Closed 5 years ago

background-clip: text not respected when printing to pdf

Categories

(Core :: Printing: Output, defect, P3)

defect

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: me, Unassigned)

References

(Blocks 1 open bug)

Details

(Whiteboard: [layout:print-triage:p3])

Attachments

(1 file)

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36 Steps to reproduce: HTML: <style> #someText { font-size: 80px; font-weight: 700; background: linear-gradient(cyan, magenta); background-clip: text; -webkit-background-clip: text; color: transparent; } </style> <div id="someText">Some Text</div> Code Pen: https://codepen.io/anon/pen/zJWRge/ Open the HTML file or go to the above codepen and click to focus the preview window. Try to print the page and save it as a PDF. Make sure 'Print background images' and 'Print background colors' are checked. Actual results: The rendered PDF appears blank Expected results: The rendered PDF should contain the gradient text. fwiw, Chrome also struggles with this - it renders a gradient rectangle (the background without the clip applied) https://bugs.chromium.org/p/chromium/issues/detail?id=883026
Component: Untriaged → PDF Viewer
Sorry, my original report was unclear - this isn't a problem with Firefox's built-in PDF viewer. It's a problem with the PDF that gets generated by Firefox when the page is printed.
ok, thanks
Component: PDF Viewer → Print Preview
Product: Firefox → Core
I am not sure which component is the correct
Attached file testcase 1
Status: UNCONFIRMED → NEW
Component: Print Preview → Printing: Output
Ever confirmed: true
Priority: -- → P3
Version: 62 Branch → Trunk
Whiteboard: [layout:print-triage:p3]

This seems to work for me now. Daniel can you confirm?

Flags: needinfo?(dholbert)

Works for me, too. (I tested "Save to PDF" with the new tab-modal printing UI, and I checked More Settings | Print Backgrounds.)

Status: NEW → RESOLVED
Closed: 5 years ago
Flags: needinfo?(dholbert)
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: