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

Re: srcN - Alternative to picture and srcset

From: Marcos Caceres <w3c@marcosc.com>
Date: Fri, 27 Sep 2013 12:15:37 +0100
To: Shane Hudson <Shane@shanehudson.net>
Cc: Marcos Caceres <marcos@marcosc.com>, "public-respimg@w3.org" <public-respimg@w3.org>, "Tab Atkins Jr." <jackalmage@gmail.com>, Robin Berjon <robin@w3.org>
Message-ID: <707B56A8017640F69202AB6D2D86FB4E@marcosc.com>



On Friday, September 27, 2013 at 11:51 AM, Shane Hudson wrote:

> I quite like where Tab is going with this. I wonder though, would it be possible to have multiple srcs instead of numbering them? It feels kind of hacky.

Feels a bit wrong to special case attribute parsing for this one special case.  
> I'm pretty sure that browsers (both current and legacy) only take the first src in an img?

Sure, but the numbering is used in the source selection algorithm. 

> 
> On Fri, Sep 27, 2013 at 11:20 AM, Marcos Caceres <marcos@marcosc.com (mailto:marcos@marcosc.com)> wrote:
> > Hi All,
> > 
> > Tab Atkins has put forward and alternative proposal to both srcset and picture:
> > 
> > http://tabatkins.github.io/specs/respimg/Overview.html
> > 
> > It combines what was originally in <source> and `srcset` into a "srcN" attribute. Example:
> > 
> > <img src1="(max-width: 400px) pic-small.jpg"
> > src2="(max-width: 1000px) pic-medium.jpg"
> > src="pic-large.jpg"
> > alt="Obama talking to a soldier in hospital scrubs.">
> > 
> > Please take a look and discuss. I've cc'ed Tab who I'm sure can answer any questions.
> > 
> > Kind regards,
> > Marcos
> > --
> > Marcos Caceres
> 
> 
> 
> 
> -- 
> 
> Shane Hudson (Website Developer - www.ShaneHudson.net (http://www.shanehudson.net/))
> 
> 07794746595
> @ShaneHudson (https://twitter.com/#!/ShaneHudson) / +Shane Hudson (https://plus.google.com/u/0/110111510059204475260)
Received on Friday, 27 September 2013 11:16:07 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:12:40 UTC