{"id":14,"date":"2012-03-07T16:34:12","date_gmt":"2012-03-07T16:34:12","guid":{"rendered":"http:\/\/www.w3.org\/community\/respimg\/?p=14"},"modified":"2012-03-09T18:22:40","modified_gmt":"2012-03-09T18:22:40","slug":"14","status":"publish","type":"post","link":"https:\/\/www.w3.org\/community\/respimg\/2012\/03\/07\/14\/","title":{"rendered":"Where Things Stand"},"content":{"rendered":"<p>Our goal is a markup-based means of delivering alternate image sources based on device capabilities, to prevent wasted bandwidth and optimize display for both screen and print. From an accessibility standpoint, it should at the very least have something equaling img\u2019s alt tag. For non-supporting browsers, fallback content should be displayed.<\/p>\n<p>This Community Group is my effort to bring a growing number of developers together with some like-minded browser and standards folk, so we can iron out any issues we may not have considered and keep things moving forward.<\/p>\n<p>The idea is to use the video tag\u2019s markup pattern as the inspiration, as it\u2019s specced to allow the use of media queries within attributes on its source elements and reliably displays the markup inside the tag in any browser that doesn\u2019t recognize it. As with the video and audio tags, this solution shouldn\u2019t require any custom scripting, HTTP\/SPDY headers, or server-side technologies to reliably deliver content tailored for the end user\u2019s context. Through use of media attributes we would not only be able to reduce wasteful image requests for the sake of users with smaller displays, \u00a0but we could tailor our images\u2019 resolutions for users with high-res displays, or for printing.<\/p>\n<p>You can see part of our brainstorming process out in the open here:<br \/>\n<a href=\"https:\/\/etherpad.mozilla.org\/responsive-assets\" target=\"_blank\" rel=\"nofollow\">https:\/\/etherpad.mozilla.org\/responsive-assets<\/a><\/p>\n<p>I\u2019ve also published the most viable-seeming markup pattern at A List Apart:<br \/>\n<a href=\"http:\/\/www.alistapart.com\/articles\/responsive-images-how-they-almost-worked-and-what-we-need\/\" target=\"_blank\" rel=\"nofollow\">http:\/\/www.alistapart.com\/articles\/responsive-images-how-they-almost-worked-and-what-we-need\/<\/a><\/p>\n<p>That markup pattern is something to the tune of:<\/p>\n<pre><code>&lt;picture alt=\"Alt tag should accurately describe the image represented by all sources, though cropping and zooming may differ.\"&gt;\r\n  &lt;source src=\"mobile.jpg\" \/&gt; &lt;!-- Matches by default. --&gt;\r\n  &lt;source src=\"high-res.jpg\" media=\"min-width: 800px\" \/&gt; &lt;!-- Overrides the previous source over 800px before any assets are fetched, resulting in a single request. --&gt;\r\n  &lt;img src=\"mobile.jpg\" \/&gt; &lt;!-- Fallback content, in the event the &lt;picture&gt; tag is completely unsupported by the user\u2019s browser. --&gt;\r\n&lt;\/picture&gt;\r\n<\/pre>\n<p><\/code><\/p>\n<p>It turns out we reached much the same conclusion as many others have previously\u2014in some cases, right down to the semantics:<\/p>\n<ul>\n<li><a href=\"http:\/\/www.w3.org\/Search\/Mail\/Public\/search?type-index=public-html&amp;index-type=t&amp;keywords=picture+element\">http:\/\/www.w3.org\/Search\/Mail\/Public\/search?type-index=public-html&amp;index-type=t&amp;keywords=picture+element<\/a><\/li>\n<li><a href=\"http:\/\/lists.w3.org\/Archives\/Public\/public-html\/2007Jun\/1057.html\" target=\"_blank\" rel=\"nofollow\">http:\/\/lists.w3.org\/Archives\/Public\/public-html\/2007Jun\/1057.html<\/a><\/li>\n<li><a href=\"http:\/\/lists.w3.org\/Archives\/Public\/public-html\/2011May\/0386.html\" target=\"_blank\" rel=\"nofollow\">http:\/\/lists.w3.org\/Archives\/Public\/public-html\/2011May\/0386.html<\/a><\/li>\n<\/ul>\n<p>We posted all this information to the WHATWG mailing list recently, but ended up covering a lot of the same \u201cwhat if we\u201d\/\u201chow about\u201d ground. While a little disjointed, you can mine through said thread at <a href=\"http:\/\/lists.whatwg.org\/pipermail\/whatwg-whatwg.org\/2012-February\/\" target=\"_blank\" rel=\"nofollow\">http:\/\/lists.whatwg.org\/pipermail\/whatwg-whatwg.org\/2012-February\/<\/a> by doing a search for \u201cresponsive images\u201d.<\/p>\n<p>I\u2019m looking forward to some focused, productive discussion here. Let\u2019s get this thing done.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Our goal is a markup-based means of delivering alternate image sources based on device capabilities, to prevent wasted bandwidth and optimize display for both screen and print. From an accessibility standpoint, it should at the very least have something equaling &hellip; <a href=\"https:\/\/www.w3.org\/community\/respimg\/2012\/03\/07\/14\/\">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-14","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/www.w3.org\/community\/respimg\/wp-json\/wp\/v2\/posts\/14","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=14"}],"version-history":[{"count":8,"href":"https:\/\/www.w3.org\/community\/respimg\/wp-json\/wp\/v2\/posts\/14\/revisions"}],"predecessor-version":[{"id":18,"href":"https:\/\/www.w3.org\/community\/respimg\/wp-json\/wp\/v2\/posts\/14\/revisions\/18"}],"wp:attachment":[{"href":"https:\/\/www.w3.org\/community\/respimg\/wp-json\/wp\/v2\/media?parent=14"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.w3.org\/community\/respimg\/wp-json\/wp\/v2\/categories?post=14"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.w3.org\/community\/respimg\/wp-json\/wp\/v2\/tags?post=14"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}