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

Description Paul Bogg 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
Comment 1 Simon Fraser (smfr) 2023-09-07 13:46:00 PDT
Does this happen if "Print Backgrounds" is checked?
Comment 2 Tim Horton 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.
Comment 3 Radar WebKit Bug Importer 2023-09-13 22:33:24 PDT
<rdar://problem/115472020>