Re: [css3-images] Is the dppx unit needed?

On May 24, 2011, at 9:46 AM, "Tab Atkins Jr." <jackalmage@gmail.com> wrote:

>> Pretty much. The weak use case was all I could think of. That being, if you want an integer number of image pixels per px (for sharper results), then it would be easier to say '2dppx' or '3dppx' than to multiply by 96 for dpi.
>> 
>> In your image() function you have 'snap' to fulfill a similar (perhaps not identical) purpose.
> 
> Basically the same purpose.  "300dpi snap" should resolve into 288dpi,
> so you get an even 3 image pixels per CSS px.

If I am reading it right, the snap is to device pixels, right? So it could be something different when printed to a laser printer. I think that is a good thing, and should be noted. 

PS. You have a note about using a term, "pixel rounding". Perhaps you could say "fractional pixels" there instead. Or "rendering that simulates fractional pixels". 

Received on Tuesday, 24 May 2011 17:33:43 UTC