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

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 UTC