Re: srcN - Alternative to picture and srcset

Thanks Tab

A few questions:

1:

> Their most popular attempt so far, the <picture>element, only hits 2 of the 3 major use-cases, and has certain aspects that implementors seem to be rather unhappy with.


Just to clarify,which major use case does picture (or picture with srcset ) not address?

2: this proposed syntax uses src to reference a large image fallback for non-srcN browsers, but it seems more common today to start with a small image in src and override upward with media queries - is that possible with srcN too?

3. In non-supporting browsers, the src image always will be http prefetched,meaning a polyfill for this syntax may not be able to avoid wasteful overhead. Element based approaches like picture can avoid overhead through use of noscript wrappers on fallback content.  Could srcN be polyfilled without waste?

Thanks
Scott Jehl





> On Sep 27, 2013, at 5: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
> 
> 
> 

Received on Friday, 27 September 2013 12:28:10 UTC