Bug 289187

Summary: REGRESSION (288504@main): If Remote Snapshotting is enabled and transformX is applied, text is flipped when exporting a PDF
Product: WebKit Reporter: Brad Andalman <bya>
Component: PrintingAssignee: Nobody <webkit-unassigned>
Status: REOPENED    
Severity: Major CC: akeerthi, a_protyasha, bw, sabouhallawa, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Safari Technology Preview   
Hardware: Mac (Apple Silicon)   
OS: macOS 15   
See Also: https://bugs.webkit.org/show_bug.cgi?id=308365
Attachments:
Description Flags
HTML that, when exported as PDF, will include flipped text
none
PDF with flipped text (generated using Safari Technology Preview)
none
Screenshot of (correct) appearance in Safari none

Brad Andalman
Reported 2025-03-05 12:45:18 PST
Created attachment 474461 [details] HTML that, when exported as PDF, will include flipped text Steps to repro: 1. Open the attached HTML in Safari Technology Preview (or in Safari in macOS 15.4b2) 2. Choose File > Export as PDF… 3. In the exported PDF, the "Lorem ipsum" text will be flipped. This appears to be due to the two `transform` CSS properties in the HTML. If there is only one, the bug does not appear. The actual value for the `translateX()` doesn't appear to matter: the text is flipped regardless of the value.
Attachments
HTML that, when exported as PDF, will include flipped text (1017 bytes, text/html)
2025-03-05 20:45 PST, Brad Andalman
no flags
PDF with flipped text (generated using Safari Technology Preview) (15.84 KB, application/pdf)
2025-03-05 20:46 PST, Brad Andalman
no flags
Screenshot of (correct) appearance in Safari (298.55 KB, image/png)
2025-03-05 20:48 PST, Brad Andalman
no flags
Brad Andalman
Comment 1 2025-03-05 12:46:47 PST
Created attachment 474462 [details] PDF with flipped text (generated using Safari Technology Preview)
Brad Andalman
Comment 2 2025-03-05 12:48:02 PST
Created attachment 474463 [details] Screenshot of (correct) appearance in Safari
Abrar Rahman Protyasha
Comment 3 2025-03-05 12:52:49 PST
Hello, thank you for the report! Which version of Safari Technology Preview are you seeing this on?
Brad Andalman
Comment 4 2025-03-05 13:06:16 PST
I've only tested it on the Safari Technology Preview (Release 214). Though it also appears in macOS 15.4 beta 2.
Radar WebKit Bug Importer
Comment 5 2025-03-05 16:52:35 PST
Aditya Keerthi
Comment 6 2025-03-05 22:37:05 PST
This appears to be caused by https://commits.webkit.org/288504@main (enablement of Remote Snapshotting).
Said Abou-Hallawa
Comment 7 2025-03-06 13:35:32 PST
EWS
Comment 8 2025-03-06 14:40:29 PST
Committed 291733@main (8467e81ce2ac): <https://commits.webkit.org/291733@main> Reviewed commits have been landed. Closing PR #42031 and removing active labels.
EWS
Comment 9 2025-03-12 13:19:14 PDT
Committed 289651.269@safari-7621-branch (4156e0e19b40): <https://commits.webkit.org/289651.269@safari-7621-branch> Reviewed commits have been landed. Closing PR #2788 and removing active labels.
Brad Andalman
Comment 10 2025-04-02 17:41:12 PDT
This is broken in macOS 15.5 Beta (24F5042g) and Safari Technology Preview (215). Reopening.
Brad Andalman
Comment 11 2025-04-02 17:49:20 PDT
It looks like the above commit hasn't yet pulled into Safari Technology Preview 215, so the fix never made it there. However, the bug was fixed in Safari 18.4 but is once again broken in Safari Version 18.5 (20621.2.1.11.5)
Note You need to log in before you can comment on or make changes to this bug.