Re: [whatwg] The src-N proposal

On 11/8/13 10:46 AM, "Rafael Rinaldi" <rafael.rinaldi@gmail.com> wrote:

>It looks complex because it tries to solve something complex. I think
>therešs no way to avoid verbosity to solve such thing.

The only way to avoid verbosity on every <img> element would be to
predefine a relationship between the names/keywords of your images and
their respective sizes, ONCE in the <head>. The browser can then
substitute the img suffix to get the right image, without having to
spell-out the full image name every time.

Or have the browser figure out what sizes are available based on
predictable <img> names such as "image-name-WxH.jpg".

I was going to suggest this with early specs definitions as a complement
to "srcset" last July, but that email is still sitting in my drafts...

Is this an idea browser implementors would even entertain?

Received on Friday, 8 November 2013 23:53:03 UTC