Re: [CSS21] 4.3.2 Lengths (reference pixel?)

On Tue, Dec 14, 2010 at 11:48 PM, Ambrose LI <ambrose.li@gmail.com> wrote:
> I know everything is already decided and this is essentially a dead
> thread. But might I say again that fixing px to 96dpi creates a px
> unit that is not even useful. The only reason people use px is because
> a lot of designs are constrained by sizes of images. A lot of pages
> have JPEG banners and the text area needs to be exactly the same width
> as the JPEG banner. If we cannot rely on 1 image pixel = 1px then I
> don't see how the px unit serves any purpose.

Device pixels aren't the same thing as image pixels, luckily.  The
relationship between image pixels and CSS px are defined by the
image-resolution property, which defaults to 1dppx (1 dot per px).
That is, each image pixel is a CSS px.

~TJ

Received on Wednesday, 15 December 2010 09:32:48 UTC