W3C home > Mailing lists > Public > whatwg@whatwg.org > November 2013

Re: [whatwg] The src-N proposal

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Tue, 19 Nov 2013 17:47:13 -0800
Message-ID: <CAAWBYDBr_z5RU+8sXW7jriS_PHrt3TFCAxcOsYRb7wHaQ3xvpw@mail.gmail.com>
To: Simon Pieters <simonp@opera.com>
Cc: WHATWG <whatwg@lists.whatwg.org>, James Graham <james@hoppipolla.co.uk>
On Tue, Nov 19, 2013 at 2:22 PM, Tab Atkins Jr. <jackalmage@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
Received on Wednesday, 20 November 2013 01:47:58 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 17:00:14 UTC