[whatwg] Implementation complexity with elements vs an attribute (responsive images)
jason at cloudfour.com
Sun May 13 02:36:37 PDT 2012
On May 13, 2012, at 9:51 AM, David Goss wrote:
> A common sentiment here seems to be that the two proposed responsive
> image solutions solve two different use cases:
After skyping with Mat (@wilto) last night, I think I may be the only one who didn’t fully grok that the mediaqueries in <picture> could be used to address both use cases.
It is still unclear to me if <img srcset> would address both.
> I also agree with many other
> developers that <picture> is definitely the more developer-friendly
> syntax, in terms of reading, writing, maintaining and scripting.
Edward’s original <img srcset> proposal was pretty straight forward, but as it has grown to try to address more use cases, the syntax has become more convoluted. I read the latest proposal multiple times last night and still couldn’t figure out how it would work.
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).
More information about the whatwg