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

Re: srcN - Alternative to picture and srcset

From: Yoav Weiss <yoav@yoav.ws>
Date: Fri, 27 Sep 2013 13:15:34 +0200
Message-ID: <CACj=BEjh0h8jANpBUfA5B09s4LgkjZ+bd1W2G2ShnLi2kAnxfA@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>
Personally, this looks like a huge improvement over existing proposals.

It combines picture art-direction handling (each srcN attribute is an
equivalent to picture's <source>), srcset's DPR switching (almost the same)
and new viewport switching syntax which has 2 main advantages over srcset's
viewport switching syntax: It is DRYer and enables relative units.

The attribute name part feels hacky, but it's something I can live with
both as a developer and as someone likely to implement this.

+1 from me.


On Fri, Sep 27, 2013 at 12:20 PM, 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
Received on Friday, 27 September 2013 11:16:06 UTC

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