Re: [css3-images] `image-resolution: span` and transformations.

On Mon, Jul 29, 2013 at 1:56 PM, Tab Atkins Jr. <jackalmage@gmail.com>wrote:

> On Mon, Jul 29, 2013 at 1:40 PM, Rik Cabanier <cabanier@gmail.com> wrote:
> > Wouldn't this result in weird resizing behavior while zooming?
> >
> > For instance, you have a 96x96 pixel image that knows it 96dpi. By
> default,
> > it will take up 96 CSS and device pixels on the screen.
> > If you zoom by 10%, it will still take up 96 CSS pixels but 106 device
> > pixels.
> >
> > Now what happens if you set the image style to:
> >
> > image-resolution: from-image snap;
>
> The image's intrinsic size would change to approximately 87 CSS px
> (that is, 96 device pixels at a screen resolution of 105.6dpi).
>

How did you come up with the dpi? Isn't it the same as before since the
image is taking up the same amount of space?


>
> >> > This is a very confusing property. Shouldn't there be a reference to
> >> > device
> >> > pixel ratio?
> >>
> >> Maybe?  The relevant concepts are very ill-defined in the platform at
> >> the moment (and this is a legacy property).
> >
> > I agree.
> > What do you mean by 'legacy'? Did anyone implement this?
>
> Yes, it's implemented by CSS based printers and printing programs.
>
> ~TJ
>

Received on Tuesday, 30 July 2013 03:04:56 UTC