Josh (the blog)

I’ve delivered simple, clear and easy-to-use services for 20 years, for startups, scaleups and government. I write about the nerdy bits here.


@joahua

Opera background printing bug

I discovered this one today when trying to build a print stylesheet for a website and testing in Opera 7.x on my Linux desktop. Even when a background is set for the body element in the print stylesheet, and the “screen” background is set only for the screen, Opera will insist on obstinantly including the “screen” background when it prints (and, by logical reasoning, should be using the print stylesheet). Apparently this has been filed as a bug by someone else, but I thought I’d rant about it here just because I can.

The closest I can see to a “fix” for this is simply using the following rule, though your mileage may vary, depending on how fancy you want your print stylesheets to look (I like mine plain).

* {background:#fff;}

For most layouts that should suffice.