[Webkit-unassigned] [Bug 136428] New: box-shadow renders incorrectly to PDF

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Sep 1 08:56:44 PDT 2014


           Summary: box-shadow renders incorrectly to PDF
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Macintosh
        OS/Version: Mac OS X 10.8
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: CSS
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: ben at fluffy.co.uk

Created an attachment (id=237451)
 --> (https://bugs.webkit.org/attachment.cgi?id=237451&action=review)
Test case and example output

I have written an Mac OS X utility which uses WebKit to produce screenshots which meet exact specifications. This allows us to be completely consistent in all our materials.

When rendering to PDF, the same box-shadow is used for all elements which have any box shadow.

It works great outputting to a PNG. And it *almost* works producing a PDF. It'd be great if PDFs work because all our web UI is done in vectors, so it would look wonderful when printed.

The attachment contains a minimal HTML file which illustrates the problem, and bitmap output (correct) and PDF output (incorrect).

The PDF was generated with this code:

    NSData *pdf = [_webView dataWithPDFInsideRect:bounds];
    [pdf writeToFile:[NSString stringWithFormat:@"%@/%04d.pdf", _outputPathPDF, _lastSnapNumber] atomically:YES];

where _webView is a pointer to a WebView instantiated by Interface Builder:

    IBOutlet WebView *_webView;

Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

More information about the webkit-unassigned mailing list