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

On Mon, Jul 29, 2013 at 8:04 PM, Rik Cabanier <cabanier@gmail.com> wrote:
> 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?

Sorry for being confusing - I was referring to device pixels per CSS
inch. ^_^  If you start at 96 device pixels per CSS in, then zoom by
10%, you end up with 105.6.

~TJJ

Received on Tuesday, 30 July 2013 16:03:48 UTC