{"id":289,"date":"2012-06-21T00:53:48","date_gmt":"2012-06-21T00:53:48","guid":{"rendered":"http:\/\/www.w3.org\/community\/respimg\/?p=289"},"modified":"2012-06-21T04:03:55","modified_gmt":"2012-06-21T04:03:55","slug":"picturefill-named-div","status":"publish","type":"post","link":"https:\/\/www.w3.org\/community\/respimg\/2012\/06\/21\/picturefill-named-div\/","title":{"rendered":"The Picturefill named Div"},"content":{"rendered":"<p>So I was messing with my own site when this spark started (also the same time Scott was updating the repos) and I&#8217;d like to get some feedback from outside entities. To give you an idea of what I&#8217;m talking about let me show you this little snippet (pasted below) and mind you this is just for the stupid little social icons in my footer. I&#8217;ve implemented the most recent commits from Picturefill that I&#8217;d like to personally go ahead and coin as &#8220;Divfill.&#8221;<\/p>\n<p><span style=\"color: #ff6600\"><em>[side note : This <code>Divfill<\/code> artist formerly known as <code>Picturefill<\/code> now appends an <code>img<\/code> element within <code>div[data-picture]<\/code>. As you hopefully will see this markup pattern can get unruly very quickly if used on a larger scale.]<\/em><\/span><\/p>\n<p>I&#8217;ve also created a <a href=\"https:\/\/github.com\/grayghostvisuals\/picturefill\/tree\/applicable-example\" target=\"_blank\" rel=\"nofollow\">new branch<\/a> with my own fork of Picturefill where <a href=\"http:\/\/grayghostvisuals.com\/picturefill\/\" target=\"_blank\" rel=\"nofollow\">I&#8217;m putting together a real world example<\/a> using this technique of Scott&#8217;s on a larger scale &ndash;with a Flickr&ndash;like layout. I hope we can use this live example and build upon it as a way to identify verboseness and at the same time indicate what&#8217;s working. I&#8217;ve done this only because a real world example is crucial to understand what we really need. This isn&#8217;t to blow the wind out of the Divfill sail. The two example images in use are just not cutting it. As they say, the proof is in the puddin&#8217; so here comes the spoon.<\/p>\n<h3>Markup using div polyfill<\/h3>\n<p>The following is the snippet I used within my footer. I also set my fallbacks for Retina<\/p>\n<pre style=\"color: blue\"><code> \r\n&lt;article id=\"footer-socials\"&gt;\r\n&lt;h3&gt;Follow Along&lt;\/h3&gt; \r\n&lt;ul class=\"socials-listing\"&gt; \r\n&lt;li class=\"twitter\"&gt; \r\n&lt;a href=\"https:\/\/twitter.com\"&gt; \r\n&lt;div data-picture data-alt=\"\"&gt; \r\n&lt;div data-src=\"img\/twitterBird.png\" data-media=\"screen\"&gt;&lt;\/div&gt; \r\n&lt;div data-src=\"img\/twitterBird@2x.png\" data-media=\"(-webkit-min-device-pixel-ratio: 2),(min-device-pixel-ratio: 2)\"&gt;&lt;\/div&gt; \r\n&lt;!-- Fallback content for non-JS browsers. Same img src as the initial, unqualified source element. --&gt; \r\n&lt;noscript&gt;&lt;img src=\"img\/twitterBird.png\" alt=\"\"&gt;&lt;\/noscript&gt; \r\n&lt;\/div&gt; \r\n&lt;\/a&gt; \r\n&lt;\/li&gt; \r\n\r\n&lt;li class=\"dribbble\"&gt;\r\n&lt;a href=\"http:\/\/dribbble.com\"&gt; \r\n&lt;div data-picture data-alt=\"Social Follow Buttons\"&gt; \r\n&lt;div data-src=\"img\/dribbbleLogo.png\" data-media=\"screen\"&gt;&lt;\/div&gt; \r\n&lt;div data-src=\"img\/dribbbleLogo@2x.png\" data-media=\"(-webkit-min-device-pixel-ratio: 2), (min-device-pixel-ratio: 2)\"&gt;&lt;\/div&gt; \r\n&lt;!-- Fallback content for non-JS browsers. Same img src as the initial, unqualified source element. --&gt; \r\n&lt;noscript&gt;&lt;img src=\"img\/dribbbleLogo.png\" alt=\"\"&gt;&lt;\/noscript&gt; \r\n&lt;\/div&gt; \r\n&lt;\/a&gt; \r\n&lt;\/li&gt; \r\n\r\n&lt;li class=\"facebook\"&gt; \r\n&lt;a href=\"http:\/\/www.facebook.com\"&gt; \r\n&lt;div data-picture data-alt=\"Social Follow Buttons\"&gt;\r\n&lt;div data-src=\"img\/facebookLike.png\" data-media=\"screen\"&gt;&lt;\/div&gt; \r\n&lt;div data-src=\"img\/facebookLike@2x.png\" data-media=\"(-webkit-min-device-pixel-ratio: 2), (min-device-pixel-ratio: 2)\"&gt;&lt;\/div&gt; \r\n&lt;!-- Fallback content for non-JS browsers. Same img src as the initial, unqualified source element. --&gt; \r\n&lt;noscript&gt;&lt;img src=\"img\/facebookLike.png\" alt=\"\"&gt;&lt;\/noscript&gt; \r\n&lt;\/div&gt; \r\n&lt;\/a&gt; \r\n&lt;\/li&gt; \r\n\r\n&lt;li class=\"github\"&gt; \r\n&lt;a href=\"https:\/\/github.com\"&gt; \r\n&lt;div data-picture data-alt=\"Social Follow Buttons\"&gt; \r\n&lt;div data-src=\"img\/githubOctocat.png\" data-media=\"screen\"&gt;&lt;\/div&gt; \r\n&lt;div data-src=\"img\/githubOctocat@2x.png\" data-media=\"(-webkit-min-device-pixel-ratio: 2), (min-device-pixel-ratio: 2)\"&gt;&lt;\/div&gt; \r\n&lt;!-- Fallback content for non-JS browsers. Same img src as the initial, unqualified source element. --&gt; \r\n&lt;noscript&gt;&lt;img src=\"img\/githubOctocat.png\" alt=\"\"&gt;&lt;\/noscript&gt;&gt; \r\n&lt;\/div&gt; \r\n&lt;\/a&gt; \r\n&lt;\/li&gt; \r\n&lt;\/ul&gt; \r\n&lt;\/article&gt;<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>So I was messing with my own site when this spark started (also the same time Scott was updating the repos) and I&#8217;d like to get some feedback from outside entities. To give you an idea of what I&#8217;m talking &hellip; <a href=\"https:\/\/www.w3.org\/community\/respimg\/2012\/06\/21\/picturefill-named-div\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1329,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_s2mail":"yes","footnotes":""},"categories":[15],"tags":[17,18,16],"class_list":["post-289","post","type-post","status-publish","format-standard","hentry","category-general-issues","tag-picturefill","tag-picturefill-example","tag-polyfill"],"_links":{"self":[{"href":"https:\/\/www.w3.org\/community\/respimg\/wp-json\/wp\/v2\/posts\/289","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\/1329"}],"replies":[{"embeddable":true,"href":"https:\/\/www.w3.org\/community\/respimg\/wp-json\/wp\/v2\/comments?post=289"}],"version-history":[{"count":42,"href":"https:\/\/www.w3.org\/community\/respimg\/wp-json\/wp\/v2\/posts\/289\/revisions"}],"predecessor-version":[{"id":330,"href":"https:\/\/www.w3.org\/community\/respimg\/wp-json\/wp\/v2\/posts\/289\/revisions\/330"}],"wp:attachment":[{"href":"https:\/\/www.w3.org\/community\/respimg\/wp-json\/wp\/v2\/media?parent=289"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.w3.org\/community\/respimg\/wp-json\/wp\/v2\/categories?post=289"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.w3.org\/community\/respimg\/wp-json\/wp\/v2\/tags?post=289"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}