W3C home > Mailing lists > Public > www-style@w3.org > July 2013

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

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Tue, 30 Jul 2013 09:03:01 -0700
Message-ID: <CAAWBYDDP_1EaksOb7R2M2e37ZK8fytisdmF8L_ccEQOYWh0Aiw@mail.gmail.com>
To: Rik Cabanier <cabanier@gmail.com>
Cc: Simon Sapin <simon.sapin@exyr.org>, www-style list <www-style@w3.org>
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

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:32 UTC