W3C home > Mailing lists > Public > www-style@w3.org > July 2008

Re: Fwd: Clarify length units in CSS

From: Bert Bos <bert@w3.org>
Date: Fri, 25 Jul 2008 18:53:32 +0200
To: "www-style@w3.org" <www-style@w3.org>
Message-Id: <200807251853.32406.bert@w3.org>

On Friday 25 July 2008 17:33, Tab Atkins Jr. wrote:

> If it wouldn't break too much on the current web (ignoring the
> possibility that the average current website would be displayed on a
> projector or something, because it really wouldn't in normal use),
> I'd prefer a px to just be identical to whatever unit browsers use
> when an author specifies the width/height of an <img> (I suppose this
> is a device pixel?).

Actually, if the browser uses CSS, then the pixels of a raster image 
have the size of a 'px', not a device pixel. (That's not clear in the 
current specification, but the WG decided to put it in the errata[1]. 
At some point we will publish a new CR with the errata folded in, or 
maybe we'll publish a Rec first and put the errata in the second 
revision, CSS 2.2...)

[1] 
http://www.w3.org/Style/css2-updates/CR-CSS21-20070719-errata.html#s.3.1

> When Units Level 3 comes in and gives me vw and 
> vh units I'll be able to switch away from pixels virtually entirely,
> which will be nice.



Bert
-- 
  Bert Bos                                ( W 3 C ) http://www.w3.org/
  http://www.w3.org/people/bos                               W3C/ERCIM
  bert@w3.org                             2004 Rt des Lucioles / BP 93
  +33 (0)4 92 38 76 92            06902 Sophia Antipolis Cedex, France
Received on Friday, 25 July 2008 16:54:11 GMT

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