Re: srcN - Alternative to picture and srcset

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