W3C home > Mailing lists > Public > www-style@w3.org > March 2006

Re: [css21] height: [percent]

From: Andrew Fedoniouk <news@terrainformatica.com>
Date: Tue, 7 Mar 2006 11:34:06 -0800
Message-ID: <005101c6421e$19aeb550$c302000a@internal.toppro.net>
To: "Ian Hickson" <ian@hixie.ch>
Cc: "Boris Zbarsky" <bzbarsky@mit.edu>, "Ignacio Javier" <ijavier@efenet.com>, <www-style@w3.org>

----- 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>; 
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 

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.

| -- 
| 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

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:27:23 UTC