Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Don't repeat background images when it's not needed #238
I just tested my stylesheet on Fedora and Mac OS X and the rendering is different. For the top left margin box I have a background image and background color defined. The preview via weasyprint.navigator is the same on both OSes, however the actual PDF output not: On Fedora, the background color is applied to the whole box, whereas on Mac OS X I see the background color only behind the background image. This seems to be related to the css property
Here is the CSS I apply:
Thanks a lot for your reply! Yes, you are correct, it is actually a problem related to the PDF viewer. On Fedora I use 'Document Viewer' and on Mac OS X 'Preview'. So which one is correct then? Is Preview at fault here?
I also tried to read up a bit more on the CSS definitions and adjusted the CSS a bit:
however that didn't really help.
Based on your experience, what is the best cross platform PDF viewer?
The same PDF file is rendered differently by different PDF viewers, so there is a PDF interoperability issue here independently of WeasyPrint.
That said, the way WeasyPrint paints background images (using a repeating pattern even for