[prev in list] [next in list] [prev in thread] [next in thread] 

List:       html5-help
Subject:    Re: [html5] Absolute Pixels in HTML 5
From:       Ian Hickson <ian () hixie ! ch>
Date:       2009-06-11 19:17:50
Message-ID: Pine.LNX.4.62.0906111917010.1648 () hixie ! dreamhostps ! com
[Download RAW message or body]

On Mon, 25 May 2009, Sean B. Palmer wrote:
>
> HTML 5 currently says that img/@width and so forth use CSS 2.1 pixel 
> values. Pixel values in CSS 2.1 are of course a relative rather than an 
> absolute unit. In other words, CSS px is a non-linear alias for radians; 
> 675.522px, for example, is a quarter of a radian.
> 
> But non-vector image formats like JPG and PNG have discrete pixels, and 
> screens have pixel displays with certain ppi values. So has anybody 
> looked at whether browsers actually implement px as a relative unit? And 
> how do they render images? I'm presuming that they don't resample to fit 
> the relative measurement.

It's hard to say today because monitors are all assumed to be 96dpi. The 
idea of using CSS pixels everywhere is to make the spec be ready for when 
screens have higher resolutions.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
_______________________________________________
Help mailing list
Help@lists.whatwg.org
http://lists.whatwg.org/listinfo.cgi/help-whatwg.org
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic