W3C home > Mailing lists > Public > public-respimg@w3.org > May 2012

Solving cases where UA, not author, must make the decision

From: Kornel Lesiński <kornel@geekhood.net>
Date: Wed, 16 May 2012 00:01:28 +0100
To: public-respimg@w3.org
Message-ID: <op.wedgwq1mte2ec8@aimac.local>

Tab makes a good argument why model of evaluating media queries is not a  
good fit for bandwidth-dependent negotiation:


How about, instead of expressing outrage at WHATWG and lamenting rejection  
of <picture> proposal, fix it?

<img srcset="regular.jpg 1x, retina.jpg 2x">


<source scale="1" src="regular.jpg">
<source scale="2" src="retina.jpg">

The idea in the above is to declare which image is a "2x" one, and let UA  
pick the one that is best suited to current screen/zoom/bandwidth and  
availability of cached resolutions.

Maybe the "scale" attribute should take values 1 and 0.5 (as referring to  
scale to display picture at, rather than scale of the image itself)? or  
called "size"? density? resolution?

regards, Kornel Lesiński
Received on Tuesday, 15 May 2012 23:02:01 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:12:38 UTC