W3C home > Mailing lists > Public > whatwg@whatwg.org > May 2012

Re: [whatwg] Implementation complexity with elements vs an attribute (responsive images)

From: Benjamin Hawkes-Lewis <bhawkeslewis@googlemail.com>
Date: Sun, 13 May 2012 11:04:51 +0100
Message-ID: <CAEhSh3fk9a25wZC2qDGBfymbvDbwE1GfSrmNeLddJJn+e+LWyw@mail.gmail.com>
To: Jason Grigsby <jason@cloudfour.com>
Cc: whatwg@lists.whatwg.org, David Goss <dvdgoss@gmail.com>
On Sun, May 13, 2012 at 10:36 AM, Jason Grigsby <jason@cloudfour.com> wrote:
> It may be that the proposal is written in language that implementors understand and that it needs to be rewritten to make it clearer for authors how it would work. Or it could be an indication that the syntax is too terse and confusing for authors (which is currently the feedback the community group is receiving).

Some people seem to think the filenames are part of the syntax. Using
filenames that don't duplicate information in the syntax might
actually be less confusing:

  <img src="a.jpg" alt=""
        set="a.jpg 600w 200h 1x,
               b.jpg 600w 200h 2x,
               c.jpg 200w 200h">

Perhaps changing the syntax to avoid confusion with units might help too:

  <img src="a.jpg" alt=""
        set="a.jpg 600x200 1x,
                b.jpg 600x200 2x,
                c.jpg 200x200">

Benjamin Hawkes-Lewis
Received on Sunday, 13 May 2012 10:05:40 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:42 UTC