[whatwg] The src-N proposal

Tab Atkins Jr. jackalmage at gmail.com
Tue Nov 19 17:47:13 PST 2013


On Tue, Nov 19, 2013 at 2:22 PM, Tab Atkins Jr. <jackalmage at gmail.com> wrote:
> Using a url/size pair in src=''
> would be invalid if sizes='' wasn't specified.

On second thought, this isn't necessary.  You can always set <img
width>, or just let it take the default intrinsic width of 300px.
<picture sizes> would just override the intrinsic width of the <img>.

After all, even if your image isn't variable-sized, using the url/size
syntax might still be easier than url/density, because you don't have
to do any math, or change the densities around when you change the
image size.

~TJ



More information about the whatwg mailing list