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

Re: srcN - Alternative to picture and srcset

From: Shane Hudson <Shane@ShaneHudson.net>
Date: Fri, 27 Sep 2013 11:51:20 +0100
Message-ID: <CANYFvNM81vbmgoVTntSRDGLOwZsjQ7bU5CvYAUOkXA2XMqqKrg@mail.gmail.com>
To: Marcos Caceres <marcos@marcosc.com>
Cc: "public-respimg@w3.org" <public-respimg@w3.org>, "Tab Atkins Jr." <jackalmage@gmail.com>, Robin Berjon <robin@w3.org>
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. I'm pretty sure that browsers (both current and legacy) only take
the first src in an img?


On Fri, Sep 27, 2013 at 11:20 AM, Marcos Caceres <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 10:52:10 UTC

This archive was generated by hypermail 2.3.1 : Friday, 27 September 2013 10:52:10 UTC