{"id":30,"date":"2012-02-21T15:57:44","date_gmt":"2012-02-21T15:57:44","guid":{"rendered":"http:\/\/www.w3.org\/community\/respimg\/?p=30"},"modified":"2012-02-21T15:57:44","modified_gmt":"2012-02-21T15:57:44","slug":"adaption-mechanisms-efficiency-of-authoring","status":"publish","type":"post","link":"https:\/\/www.w3.org\/community\/respimg\/2012\/02\/21\/adaption-mechanisms-efficiency-of-authoring\/","title":{"rendered":"Adaption mechanisms &amp; efficiency of authoring"},"content":{"rendered":"<p>I&#8217;m loving the &lt;picture&gt; element proposal but I do see one problem with it in a practical sense rather than a functional sense: failing DRY principals.<\/p>\n<p>In a real world use I would imagine (and please weigh in on this) that the adaption points for almost all images on any given page, or even any given website, would be the same points all the time. i.e., the design itself could have lets say 4 break points, and all the images are likewise likely to have 4 breakpoints. So repeating the same media rule on every single &lt;picture&gt; element is going to get tedious quickly. Imagine a gallery page with the same rules repeated over and over.<\/p>\n<p>Can we get a way to set a &#8220;master&#8221; or default set of break-points, somewhat like CSS variables (constants), which are assumed in subsequent &lt;picture&gt; elements, but can be over-ridden on specific cases if needed?<\/p>\n<p>Or is that out of scope for HTML?<\/p>\n<p>I bring this up because I think it&#8217;s important to consider the principle of adapting content to the <em>design<\/em> rather than the <em>device<\/em>. It&#8217;s the design that adapts to the device and the content adapts to the design. In terms of prior stuff that works on this principle http:\/\/adaptive-images.com is intended to use the same breakpoints as the design in order to adapt content images.<\/p>\n<p>Thoughts?<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;m loving the &lt;picture&gt; element proposal but I do see one problem with it in a practical sense rather than a functional sense: failing DRY principals. In a real world use I would imagine (and please weigh in on this) &hellip; <a href=\"https:\/\/www.w3.org\/community\/respimg\/2012\/02\/21\/adaption-mechanisms-efficiency-of-authoring\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1289,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_s2mail":"yes","footnotes":""},"categories":[4],"tags":[],"class_list":["post-30","post","type-post","status-publish","format-standard","hentry","category-responsive-web-design"],"_links":{"self":[{"href":"https:\/\/www.w3.org\/community\/respimg\/wp-json\/wp\/v2\/posts\/30","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\/1289"}],"replies":[{"embeddable":true,"href":"https:\/\/www.w3.org\/community\/respimg\/wp-json\/wp\/v2\/comments?post=30"}],"version-history":[{"count":1,"href":"https:\/\/www.w3.org\/community\/respimg\/wp-json\/wp\/v2\/posts\/30\/revisions"}],"predecessor-version":[{"id":31,"href":"https:\/\/www.w3.org\/community\/respimg\/wp-json\/wp\/v2\/posts\/30\/revisions\/31"}],"wp:attachment":[{"href":"https:\/\/www.w3.org\/community\/respimg\/wp-json\/wp\/v2\/media?parent=30"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.w3.org\/community\/respimg\/wp-json\/wp\/v2\/categories?post=30"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.w3.org\/community\/respimg\/wp-json\/wp\/v2\/tags?post=30"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}