W3C home > Mailing lists > Public > public-respimg@w3.org > September 2013

Re: srcN - Alternative to picture and srcset

From: Robin Berjon <robin@w3.org>
Date: Fri, 27 Sep 2013 14:00:28 +0200
Message-ID: <5245735C.9000702@w3.org>
To: Attiks <attiks@gmail.com>
CC: Shane Hudson <Shane@shanehudson.net>, Marcos Caceres <marcos@marcosc.com>, "public-respimg@w3.org" <public-respimg@w3.org>, "Tab Atkins Jr." <jackalmage@gmail.com>
On 27/09/2013 13:14 , Attiks wrote:
> I have to agree with Shane, it feels hacky to number them, also if you
> want to remove one later, you'll have a gap, which does not look nice
> and no idea how it's going to be handled.

It's handled well, the algorithm does not in the least care that the 
numbers are sequential so long as they sort properly.

In fact, just to make it easy to insert new values later without 
renumbering the best practice is probably to use larger increments, e.g. 
src5, src10, src15... Anyone who's ever had to code using GOTO <LINE> 
will be intimately familiar with what I mean.

I wonder if Image.src should reflect the winning candidate (and if we 
should trigger an event when that changes).

Robin Berjon - http://berjon.com/ - @robinberjon
Received on Friday, 27 September 2013 12:00:47 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:06:10 UTC