Re: [css21] height: [percent]

----- Original Message ----- 
From: "Ian Hickson" <ian@hixie.ch>
To: "Andrew Fedoniouk" <news@terrainformatica.com>
Cc: "Boris Zbarsky" <bzbarsky@mit.edu>; "Ignacio Javier" <ijavier@efenet.com>; 
<www-style@w3.org>
Sent: Tuesday, March 07, 2006 10:52 AM
Subject: Re: [css21] height: [percent]


|
| On Tue, 7 Mar 2006, Andrew Fedoniouk wrote:
| >
| > And what if 150px is too small? E.g. on printer it could be 3mm  or so.
|
| "px" is not a device pixel, it's a visual angle pixel defined relative to
| 96dpi. Please see the spec for the full definition.

"If the pixel density of the output device is very different from that of a 
typical computer display, the user agent should rescale pixel values. It is 
recommended that the reference pixel be the visual angle of one pixel on a 
device with a pixel density of 96dpi and a distance from the reader of an arm's 
length."

As you may see such rescaling is not a mandatory.
And probably it is better to replace 150px by something more reliable like 10cm 
?
If this magic number is really needed. Why not use some relative value like 50% 
of width of the view or so?

Andrew Fedoniouk.
http://terrainformatica.com



|
| -- 
| Ian Hickson               U+1047E                )\._.,--....,'``.    fL
| http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
| Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
| 

Received on Tuesday, 7 March 2006 19:34:48 UTC