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

Re: Length unit relative to media width

From: Christian Roth <roth@visualclick.de>
Date: Thu, 20 Feb 2003 11:56:49 +0100
To: "www-style Mailing List" <www-style@w3.org>
Message-Id: <20030220105649.30221@mail.visualclick.de>

>What we need might be a property that is a reference to the media 
>a html/css page is designed for. For instance a property that is only 
>used on the body element like this:
> 
>reference-type: client -width  |  media-width  |  none
>reference-pixels: <integer>
>reference-size: <length>
> 
>Short notation:
>body { reference:screen-width 1200  400mm}

Isn't this equivalent to stating the ppi value of the output device?
Currently, the CSS recommendation is 90ppi for CSS2 and corrected to
96ppi in CSS2.1 if I am right. It seems also to me that it's the UA's
responsibility to scale values given in px unit according to the assumed
absolute size of 1px.

This means that if you have designed your document with the assumption of
1px=1/96in, it will look exactly the same in absolute size on every monitor.

This also enables to scale the view (by artificially setting a different
base ppi value by/within the UA) and adapt to real available ppi on the
respective monitor (retrieved possibly using DDC or some other monitor
profile). This also enables a UA to display a document window spanning
over two monitors and displaying it at the same absolute size (i.e. in sync).

So, it seems to me that there is no action to be taken regarding on CSS' side?

Regards, Christian
Received on Thursday, 20 February 2003 05:57:06 GMT

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