Re: Accept- & Content-Resolution headers proposal

Travis Snoozy <ai2097@users.sourceforge.net> wrote:

> I'm betting that CSS doesn't have anything to switch on DPI yet. As a
> totally fictional example:
> 
> @media screen.300dpi {
> @import url('/300dpi.css');
> }
> 
> @media print.1200dpi {
> @import url('/1200dpi.css');
> }
> 
> Syntax, of course, would be up to negotiation, but this provides a
> general idea. The DPI switching should be done in CSS.

It can.  CSS Media Query:  http://www.w3.org/TR/css3-mediaqueries/

@media screen and (resolution: 300dpi) { @import url(/300dpi.css); }
@media screen and (resolution: 1200dpi) { @import url(/1200dpi.css);}

Where appropriate, media query keywords can take an optional min- or max-
prefix to convert the equality comparison into a greater than or equal, or
less than or equal.  e.g.

@media screen and (min-resolution: 1200dpi) { @import url(/1200+dpi.css); }


-- 
Stewart Brodie
Software Engineer
ANT Software Limited

Received on Thursday, 7 June 2007 17:20:35 UTC