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)
Core
Printing: Output
Tracking
()
RESOLVED
WORKSFORME
People
(Reporter: me, Unassigned)
References
(Blocks 1 open bug)
Details
(Whiteboard: [layout:print-triage:p3])
Attachments
(1 file)
352 bytes,
text/html
|
Details |
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
Updated•7 years ago
|
Component: Untriaged → PDF Viewer
Reporter | ||
Comment 1•7 years ago
|
||
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.
Comment 3•7 years ago
|
||
I am not sure which component is the correct
Comment 4•6 years ago
|
||
Updated•6 years ago
|
Status: UNCONFIRMED → NEW
Component: Print Preview → Printing: Output
Ever confirmed: true
Priority: -- → P3
Version: 62 Branch → Trunk
Updated•6 years ago
|
Whiteboard: [layout:print-triage:p3]
Comment 5•5 years ago
|
||
This seems to work for me now. Daniel can you confirm?
Flags: needinfo?(dholbert)
Comment 6•5 years ago
|
||
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.
Description
•