W3C home > Mailing lists > Public > public-html@w3.org > May 2011

Re: Adaptive images

From: Karl Dubost <karld@opera.com>
Date: Mon, 30 May 2011 10:24:37 -0400
Message-Id: <413C56F7-4615-413E-B8BB-7E1C72B0AED0@opera.com>
Cc: public-html@w3.org
To: Dominique Hazael-Massieux <dom@w3.org>

Le 30 mai 2011 à 09:43, Dominique Hazael-Massieux a écrit :
> But one aspect that remains difficult to manage in such an approach is
> handling of content images.

:)

one technique which is also used currently (and not satisfying) is 
http://www.broken-links.com/2011/02/21/using-media-queries-in-the-real-world/
<div class="img" data-height="100" data-src="image.png" data-width="100" />


Another possibility using javascript and data-* API [1]

	<img src="lowres" data-src="highres" alt="boo"/>

Though it doesn't solve to have more than one image

[1]: http://www.w3.org/TR/html5/dom.html#custom-data-attribute


-- 
Karl Dubost - http://dev.opera.com/
Developer Relations & Tools, Opera Software
Received on Monday, 30 May 2011 14:25:08 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 9 May 2012 00:17:32 GMT