Not sure how best to provide a working code sample, but we have our internal documentation site with procedures which need to “look good” as a page, and as an exported (“printed”) pdf. The site is using Bootstrap, which comes with a few @media print
directives, which most are easy enough to override if needed, but for some reason the table background
property is displaying in color (our preferred way) in the print media simulation but transparent (the bootstrap way) in the actual print preview and PDF output.
Here are the relevant styles as shown in the Developer Tools:
Here is the output as it appears in the Firefox tab:
And here is the output as it appears in the printed PDF (and the preview looks the same):
It’s like the !important
stuff is not applied correctly in the printing process. Is this a know issue in FF, or something I can fix somehow on my side? What is going on?