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

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