W3C home > Mailing lists > Public > whatwg@whatwg.org > November 2013

Re: [whatwg] The src-N proposal

From: Bruno Racineux <bruno@hexanet.net>
Date: Fri, 08 Nov 2013 15:52:31 -0800
To: Rafael Rinaldi <rafael.rinaldi@gmail.com>, Yoav Weiss <yoav@yoav.ws>, Ian Hickson <ian@hixie.ch>
Message-ID: <CEA2B7B0.7962A%bruno@hexanet.net>
Cc: WHATWG <whatwg@whatwg.org>

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

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 17:00:13 UTC