On Nov 5, 2013, at 2:18 AM, John Mellor <joh...@chromium.org> wrote:

> <img srcset="(min-width: 640px) 0.5x ph...@0.5x.jpg, 1x ph...@1x.jpg, 2x 
> ph...@2x.jpg || 0.5x photo-c...@0.5x.jpg, 1x photo-c...@1x.jpg, 2x 
> photo-c...@2x.jpg">

I prefer this over multiple attributes. It is a syntax that needs little 
explanation before you can read it and use it. It also expands the existing 
srcset instead of confusing things with other attributes.

srcN is also too fiddly. If you want to add a higher precedent srcN, you need 
to reorder all the existing srcN attribute names. With srcset you just need to 
edit a single attribute's value, adding a logic operator between the rules.

— Timothy Hatcher

_______________________________________________
webkit-dev mailing list
webkit-dev@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-dev

Reply via email to