[whatwg] add html-attribute for "responsive images"

Bjartur Thorlacius svartman95 at gmail.com
Mon Feb 6 15:15:49 PST 2012


On Mon, 06 Feb 2012 21:23:37 -0000, Mathew Marquis <mat at matmarquis.com>  
wrote:
> I recently published a sum-up of our thinking at A List Apart (  
> http://www.alistapart.com/articles/responsive-images-how-they-almost-worked-and-what-we-need/  
> )—in short, using the <video> markup pattern as the inspiration, with  
> the use of media attributes on the <source> elements to determine the  
> rendered source, and the inclusion of an <img>--ideally a smaller image,  
> to account for the lowest-common-denominator--as a fallback similar to  
> the way Flash or an image might be used as a <video> fallback.
>
Why not use a media attribute of <object>? That way you should get media  
type disambiguation for free.
-- 
-,Bjartur



More information about the whatwg mailing list