{"id":197,"date":"2012-05-11T16:43:07","date_gmt":"2012-05-11T16:43:07","guid":{"rendered":"http:\/\/www.w3.org\/community\/respimg\/?p=197"},"modified":"2012-05-11T20:05:19","modified_gmt":"2012-05-11T20:05:19","slug":"respimg-proposal","status":"publish","type":"post","link":"https:\/\/www.w3.org\/community\/respimg\/2012\/05\/11\/respimg-proposal\/","title":{"rendered":"Responsive image element proposed by the WHATWG"},"content":{"rendered":"<p>After months of discussing possible solutions for responsive images on <a href=\"http:\/\/lists.whatwg.org\/pipermail\/whatwg-whatwg.org\/2012-May\/035746.html\" target=\"_blank\" rel=\"nofollow\">the WHATWG mailing list<\/a>, I discovered yesterday that another, different syntax was proposed on <a href=\"http:\/\/webchat.freenode.net\/?channels=#WHATWG\" target=\"_blank\" rel=\"nofollow\">the WHATWG IRC channel<\/a>. Additionally, when I\u00a0<a href=\"http:\/\/krijnhoetmer.nl\/irc-logs\/whatwg\/20120510#l-747\" target=\"_blank\" rel=\"nofollow\">joined the discussion<\/a>, it became apparent that the majority of the WHATWG leads present in IRC weren&#8217;t aware of the proposed <code>picture<\/code> element\u2014or, in fact, this Community Group. Thankfully, after being informed about our efforts, I was assured they would attempt to incorporate our input.<\/p>\n<p>The majority of the people involved in the IRC discussion had not heard of our Community Group, and \u2014though none of us were contacted for input when the time came to propose solutions.<\/p>\n<p>So we\u2019re all in the loop here, <a href=\"http:\/\/junkyard.damowmow.com\/507\" target=\"_blank\" rel=\"nofollow\">the currently proposed solution<\/a>\u00a0is a new <code>set<\/code> attribute on the <code>img<\/code> element. If that link&#8217;s not working for you, the proposed syntax is:<\/p>\n<pre><code>&lt;img src=\"face-600-200@1.jpg\" alt=\"\" set=\"face-600-200@1.jpg 600w 200h 1x, face-600-200@2.jpg 600w 200h 2x, face-icon.png 200w 200h\"&gt;<\/code><\/pre>\n<p>To recap, the markup pattern proposed by this community group is as follows:<\/p>\n<pre><code>&lt;picture alt=\"\"&gt; &lt;source src=\"mobile.jpg\" \/&gt; &lt;source src=\"large.jpg\" media=\"min-width: 600px\" \/&gt; &lt;source src=\"large_1.5x-res.jpg\" media=\"min-width: 600px, min-device-pixel-ratio: 1.5\" \/&gt; &lt;img src=\"mobile.jpg\" \/&gt; &lt;\/picture&gt;<\/code><\/pre>\n<p>I noted a number of concerns with the new, WHATWG-proposed <code>img<\/code> syntax in IRC, namely that it seems far less developer-friendly than the proposed <code>picture<\/code> markup structure.<\/p>\n<p>But now? Now we need to hear from you.<\/p>\n<p>The WHATWG, having now realized there&#8217;s been significant work being done in this group, wants to hear what you think. I&#8217;ve been asked to provide citations of <a href=\"http:\/\/krijnhoetmer.nl\/irc-logs\/whatwg\/20120511#l-420\" target=\"_blank\" rel=\"nofollow\">developer opinion<\/a>\u00a0on the topic, so I&#8217;d like to ask you to sound off in the comments:<\/p>\n<p><strong>Does <code>picture<\/code> seem like something you&#8217;d like to write, or does the <code>img set<\/code> attribute seem more accessible to the average developer?<\/strong><\/p>\n<p>Additionally, if you have more thoughts on the topic you&#8217;d like to share with the WHATWG, here&#8217;s how to continue the discussion:<\/p>\n<ul>\n<li><a href=\"http:\/\/www.whatwg.org\/mailing-list#specs\" target=\"_blank\" rel=\"nofollow\">Join the WHATWG mailing list<\/a>, and help keep <code>picture<\/code> at the forefront of the discussion.<\/li>\n<li>Join the <a href=\"http:\/\/webchat.freenode.net\/?channels=#WHATWG\" target=\"_blank\" rel=\"nofollow\">#WHATWG channel on IRC<\/a>, since apparently this is where the WHATWG leads&#8217; attention is focused.<\/li>\n<li>Talk to <a href=\"http:\/\/twitter.com\/whatwg\" target=\"_blank\" rel=\"nofollow\">the WHATWG on Twitter<\/a>.<\/li>\n<\/ul>\n<p>If you have a clear argument for or against the proposed syntax <a href=\"http:\/\/junkyard.damowmow.com\/507\" target=\"_blank\" rel=\"nofollow\">here<\/a>, for or against the <a href=\"https:\/\/github.com\/Wilto\/respimg\" target=\"_blank\" rel=\"nofollow\">picture element<\/a>, or a decided preference between the two: it seems like now is our opportunity to have our voices heard.<\/p>\n<p>If you care about responsive images, I&#8217;d love for you to join in.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>After months of discussing possible solutions for responsive images on the WHATWG mailing list, I discovered yesterday that another, different syntax was proposed on the WHATWG IRC channel. Additionally, when I\u00a0joined the discussion, it became apparent that the majority of &hellip; <a href=\"https:\/\/www.w3.org\/community\/respimg\/2012\/05\/11\/respimg-proposal\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1272,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_s2mail":"yes","footnotes":""},"categories":[1],"tags":[],"class_list":["post-197","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/www.w3.org\/community\/respimg\/wp-json\/wp\/v2\/posts\/197","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.w3.org\/community\/respimg\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.w3.org\/community\/respimg\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.w3.org\/community\/respimg\/wp-json\/wp\/v2\/users\/1272"}],"replies":[{"embeddable":true,"href":"https:\/\/www.w3.org\/community\/respimg\/wp-json\/wp\/v2\/comments?post=197"}],"version-history":[{"count":13,"href":"https:\/\/www.w3.org\/community\/respimg\/wp-json\/wp\/v2\/posts\/197\/revisions"}],"predecessor-version":[{"id":211,"href":"https:\/\/www.w3.org\/community\/respimg\/wp-json\/wp\/v2\/posts\/197\/revisions\/211"}],"wp:attachment":[{"href":"https:\/\/www.w3.org\/community\/respimg\/wp-json\/wp\/v2\/media?parent=197"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.w3.org\/community\/respimg\/wp-json\/wp\/v2\/categories?post=197"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.w3.org\/community\/respimg\/wp-json\/wp\/v2\/tags?post=197"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}