Bug 261255

Summary: Linear-gradient with alpha mask not converting to PDF properly
Product: WebKit Reporter: Paul Bogg <paul.bogg>
Component: PDFAssignee: Nobody <webkit-unassigned>
Status: NEW    
Severity: Normal CC: heycam, simon.fraser, thorton, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Safari 16   
Hardware: All   
OS: All   
Attachments:
Description Flags
Contains div with linear-gradient css applied to it none

Paul Bogg
Reported 2023-09-06 22:32:41 PDT
Created attachment 467580 [details] Contains div with linear-gradient css applied to it Linear-gradient css on div does not convert properly to PDF See attachment index_2.html 1. Open index_2.html in Safari 2. Save as PDF (CTRL-P --> PDF) 3. Open PDF up - see that it does not look the same as browser
Attachments
Contains div with linear-gradient css applied to it (220 bytes, text/html)
2023-09-06 22:32 PDT, Paul Bogg
no flags
Simon Fraser (smfr)
Comment 1 2023-09-07 13:46:00 PDT
Does this happen if "Print Backgrounds" is checked?
Tim Horton
Comment 2 2023-09-08 09:23:03 PDT
It does. I have a recollection that this is a limitation of CGPDFContext, and am pretty sure we have some very old bugs about it.
Radar WebKit Bug Importer
Comment 3 2023-09-13 22:33:24 PDT
Note You need to log in before you can comment on or make changes to this bug.