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

Benjamin Hawkes-Lewis bhawkeslewis at googlemail.com
Sun May 13 03:04:51 PDT 2012

On Sun, May 13, 2012 at 10:36 AM, Jason Grigsby <jason at 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

More information about the whatwg mailing list