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

Re: monochrome

From: Matthew Brealey <thelawnet@yahoo.com>
Date: Wed, 16 Feb 2000 14:32:51 -0800
Message-ID: <38AB2593.669B@yahoo.com>
To: www-style@w3.org
> I think it would be good to have monochrome and color print and screen
> media. Just one example, off the top of my head:
> 
> dfn{color:black;background-color:#ffa;font-style:normal}
> in the color-screen and color-print media and
> dfn{font-style:italic}
> in the monochrome-print and monoschrome-screen medium.

Personally (and incidentally) I consider it the height of rudeness to
include colours in print style sheets. 

If there was to be such a media option, UAs should have a 'treat printer
as monochrome' option to block the use of colour. 

In addition, I think that a better name structure would be
PRIMARYMEDIA_ATTRIBUTE.

For example, media="print_mono" or print_color. The advantage that this
has is that it is infinitely extensible and fully backwards compatible,
because HTML states that print_mono matches print (because media are
truncated at the first non-A-Za-Z0-9- character). Unfortunately,
Internet Explorer's buggy parsing (time and time again, supposedly
'user-friendly' parsing (such as accepting color=red instead of color:
red) comes back to haunt IE) means that it won't match these media (both
Mozilla and Opera will).

By this means it is possible to devise a full system of media to
describe every device based on its device type and secondary attributes.
For instance, print_lowres might (with CSS-3 replaced content) allow
replacement of high-res images for text-only or line graphics. A more
advanced syntax, and one that removes the need for the @viewport rule I
propsoed, might allow the colour depth or dimensions of the screen to be
selected. For instance, all_colordepth(24) matches all 24 bit devices,
and all_viewport(600-700, 400-500), could match viewports of between 600
and 700 pixels wide by 400 to 500 pixels long. Similarly,
print_dpi(0-150) matches printers with between 0 and 150 dpi.

In order to provide authors with the ability to exclude older browsers,
I propose that MEDIA-ATTRIBUTE be also valid and precisely equivalent -
print-color is the same as print_color, but print-color will not be read
by older browsers.
Received on Wednesday, 16 February 2000 09:30:50 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:04 GMT