W3C home > Mailing lists > Public > whatwg@whatwg.org > July 2012

Re: [whatwg] Interaction between <img srcset> and CSS image-resolution

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Mon, 9 Jul 2012 17:08:45 -0700
Message-ID: <CAAWBYDArZ6N=uQQWyq8TcP2THjbXK0oX-KDdW2JY7ONDEVL+ng@mail.gmail.com>
To: Simon Pieters <simonp@opera.com>
Cc: "whatwg@whatwg.org" <whatwg@whatwg.org>
On Mon, Jun 4, 2012 at 1:25 AM, Simon Pieters <simonp@opera.com> wrote:
> How do <img srcset> and CSS image-resolution interact? What happens with
> e.g. <img srcset="foo.jpg 2x" style="image-resolution:2dppx">?

I think that the @srcset resolution should be treated as an intrinsic
resolution.  In your example, then, 'image-resolution' would override
the 2x (though both specify the same value, obviously).  Using
"from-image", though, would defer to the @srcset resolution.

Received on Tuesday, 10 July 2012 00:09:36 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:43 UTC