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

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

http://www.xanthir.com/blog/b4Hv0


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

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

↓

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

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