[whatwg] Interaction between <img srcset> and CSS image-resolution
Tab Atkins Jr.
jackalmage at gmail.com
Mon Jul 9 17:08:45 PDT 2012
On Mon, Jun 4, 2012 at 1:25 AM, Simon Pieters <simonp at 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
More information about the whatwg
mailing list