[whatwg] Resolutions meta tag proposal

timeless timeless at gmail.com
Sat Jul 3 19:16:24 PDT 2010


2010/7/3 André Luís <andreluis.pt at gmail.com>:
> (alt-option 1) Trying to step away from the solution presented, I can
> only imagine something along the lines of different src attributes for
> different resolutions:
>
> <img src="imgs/standard-def.png" src-2x="imgs/high-def.png">
> <video src="movs/sd.ogv" src-2x="movs/hd.ogv">

<img lowsrc> used to exist:
http://www.htmlcodetutorial.com/images/_IMG_LOWSRC.html

it's mostly gone now.

I think that if someone wants to be fancy they can use the existing
features (min-device-pixel-ratio, alternate stylesheets) and hide the
<img> content and replace it with background images or something.



More information about the whatwg mailing list