On 5 Nov 2013, at 9:55 am, Timothy Hatcher <timo...@apple.com> wrote:
> 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. This is a great point. Also, we should be mindful that whatever solution should be vaguely applicable to other contexts where you’re selecting resources based on resolution, etc, such as video and CSS properties. I don’t want an explosion of attributes everywhere, and I don’t even know how you’d do that in CSS (background-image-1, background-image-2, …) Dean
_______________________________________________ webkit-dev mailing list webkit-dev@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-dev