W3C home > Mailing lists > Public > www-style@w3.org > February 2011

Re: Printing and background colors/images

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Tue, 22 Feb 2011 17:40:05 -0800
Message-ID: <AANLkTikow=LfoPvtj6pKvhsQgzZw4HvSru15KkMCw7dN@mail.gmail.com>
To: Rob Crowther <robertc@boogdesign.com>
Cc: www-style@w3.org
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.

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

This archive was generated by hypermail 2.4.0 : Monday, 23 January 2023 02:13:56 UTC