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.

~TJ
Received on Tuesday, 10 July 2012 00:09:36 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 30 January 2013 18:48:09 GMT