Rudie Dirkx 11 December 2012 I agree completely! Especially 2. and 3. Media queries in HTML? Come on! ‘My’ solution is still the best, but you try to get someone to listen: <pre> <img src=“small.jpg” data-src-m=“medium.jpg” data-src-l=“large.jpg”> @media (min-width: 900px) { img[data-src-l] { content: attr(data-src-l); } } </pre> You’d almost think it already works, it’s that sensible.
I agree completely! Especially 2. and 3. Media queries in HTML? Come on!
‘My’ solution is still the best, but you try to get someone to listen:
<pre>
<img src=“small.jpg” data-src-m=“medium.jpg” data-src-l=“large.jpg”>
@media (min-width: 900px) { img[data-src-l] { content: attr(data-src-l); }
}
</pre>
You’d almost think it already works, it’s that sensible.