Re: Printing and background colors/images

On Tue, Feb 22, 2011 at 5:24 PM, Rob Crowther <robertc@boogdesign.com> wrote:
> On 22/02/11 17:17, Ian Fette (イアンフェッティ) wrote:
>> 2. Print backgrounds only if explicitly specified inside of a @media
>> print{} block.
>
> If this sort of thing were to be implemented would we also consider
> extending media queries to allow for different stylesheets to be supplied to
> greyscale/colour printers?  (Assuming this sort of information is accessible
> to the browser)

This is already (theoretically) possible with Media Queries, using the
'color' and 'monochrome' features
<http://www.w3.org/TR/css3-mediaqueries/#monochrome>.  Example 37
shows precisely the necessary code to do what you're requesting.


> When considering the possibility of 'printing' to a PDF, you might also want
> to do different things with links and generated content depending on whether
> the output will be some sort of link capable document format or static
> paper.

There's a limit to how far we can go down that route, as CSS doesn't
actually have control over things like link behavior.  In any case,
this isn't related to the question at hand - it's a generic
improvement request for Media Queries, while we're trying to answer a
question of how to enable printing of backgrounds.

~TJ

Received on Wednesday, 23 February 2011 01:40:57 UTC