<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Using SVG in backgrounds with PNG fallback</title>
	<atom:link href="http://www.broken-links.com/2010/06/14/using-svg-in-backgrounds-with-png-fallback/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.broken-links.com/2010/06/14/using-svg-in-backgrounds-with-png-fallback/</link>
	<description>Thoughts on web development and technologies by Peter Gasston</description>
	<lastBuildDate>Mon, 06 Feb 2012 13:50:01 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>By: Peter</title>
		<link>http://www.broken-links.com/2010/06/14/using-svg-in-backgrounds-with-png-fallback/#comment-39354</link>
		<dc:creator>Peter</dc:creator>
		<pubDate>Tue, 21 Sep 2010 21:41:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.broken-links.com/?p=861#comment-39354</guid>
		<description>I don&#039;t quite get what you mean, Bryan; it&#039;s showing the two side-by-side? Or one appears under the other? I&#039;m looking at it in Chrome now and it seems fine.</description>
		<content:encoded><![CDATA[<p>I don’t quite get what you mean, Bryan; it’s showing the two side-by-side? Or one appears under the other? I’m looking at it in Chrome now and it seems fine.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bryan Elliott</title>
		<link>http://www.broken-links.com/2010/06/14/using-svg-in-backgrounds-with-png-fallback/#comment-39350</link>
		<dc:creator>Bryan Elliott</dc:creator>
		<pubDate>Tue, 21 Sep 2010 18:51:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.broken-links.com/?p=861#comment-39350</guid>
		<description>Chrome breaks it.  It causes both the SVG and the PNG to display simultaneously.</description>
		<content:encoded><![CDATA[<p>Chrome breaks it.  It causes both the SVG and the PNG to display simultaneously.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter</title>
		<link>http://www.broken-links.com/2010/06/14/using-svg-in-backgrounds-with-png-fallback/#comment-38906</link>
		<dc:creator>Peter</dc:creator>
		<pubDate>Mon, 09 Aug 2010 09:11:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.broken-links.com/?p=861#comment-38906</guid>
		<description>You&#039;re right, Matthias, it&#039;s certainly not a method without any drawbacks; I&#039;d hesitate to use it on a production site because it has so many limitations.</description>
		<content:encoded><![CDATA[<p>You’re right, Matthias, it’s certainly not a method without any drawbacks; I’d hesitate to use it on a production site because it has so many limitations.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matthias</title>
		<link>http://www.broken-links.com/2010/06/14/using-svg-in-backgrounds-with-png-fallback/#comment-38901</link>
		<dc:creator>Matthias</dc:creator>
		<pubDate>Sun, 08 Aug 2010 23:29:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.broken-links.com/?p=861#comment-38901</guid>
		<description>The drawback of this method is obviously that if the browser supports the &lt;a href=&quot;http://www.w3.org/TR/css3-background/#the-background-image&quot; rel=&quot;nofollow&quot;&gt;CSS 3 &lt;code&gt;background-image&lt;/code&gt; property&lt;/a&gt;, the browser will fetch both images and &lt;a href=&quot;http://www.w3.org/TR/css3-background/#layering&quot; rel=&quot;nofollow&quot;&gt;lay them over each other&lt;/a&gt; (the SVG will be on the first layer and should cover the PNG, so that it becomes invisible). This also means that without optimisation (that is browser detects that the SVG covers the entire area and ignores all other layers) the browser will have to scale both images.</description>
		<content:encoded><![CDATA[<p>The drawback of this method is obviously that if the browser supports the <a href="http://www.w3.org/TR/css3-background/#the-background-image" rel="nofollow">CSS 3 <code>background-image</code> property</a>, the browser will fetch both images and <a href="http://www.w3.org/TR/css3-background/#layering" rel="nofollow">lay them over each other</a> (the SVG will be on the first layer and should cover the PNG, so that it becomes invisible). This also means that without optimisation (that is browser detects that the SVG covers the entire area and ignores all other layers) the browser will have to scale both images.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter</title>
		<link>http://www.broken-links.com/2010/06/14/using-svg-in-backgrounds-with-png-fallback/#comment-38450</link>
		<dc:creator>Peter</dc:creator>
		<pubDate>Thu, 01 Jul 2010 18:33:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.broken-links.com/?p=861#comment-38450</guid>
		<description>Hmm, it worked in IE8 when I last checked; I&#039;ll take another look later and confirm. Thanks for the feedback.

&lt;strong&gt;Update:&lt;/strong&gt; You were right; IE was not falling back as expected. I&#039;ve updated the technique so it works as expected now. Thanks a lot for spotting this.</description>
		<content:encoded><![CDATA[<p>Hmm, it worked in IE8 when I last checked; I’ll take another look later and confirm. Thanks for the feedback.</p>
<p><strong>Update:</strong> You were right; IE was not falling back as expected. I’ve updated the technique so it works as expected now. Thanks a lot for spotting this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: BerggreekDK</title>
		<link>http://www.broken-links.com/2010/06/14/using-svg-in-backgrounds-with-png-fallback/#comment-38447</link>
		<dc:creator>BerggreekDK</dc:creator>
		<pubDate>Thu, 01 Jul 2010 17:21:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.broken-links.com/?p=861#comment-38447</guid>
		<description>Just checked this on Windows 7, Internet Explorer 8... all squares blank. And the background on Firefox 3.6.6 does not scale to browser width, so the Safari 5.x and Chrome 5.x works. Guess this trick is obsolete now.</description>
		<content:encoded><![CDATA[<p>Just checked this on Windows 7, Internet Explorer 8… all squares blank. And the background on Firefox 3.6.6 does not scale to browser width, so the Safari 5.x and Chrome 5.x works. Guess this trick is obsolete now.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter</title>
		<link>http://www.broken-links.com/2010/06/14/using-svg-in-backgrounds-with-png-fallback/#comment-38177</link>
		<dc:creator>Peter</dc:creator>
		<pubDate>Tue, 15 Jun 2010 21:29:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.broken-links.com/?p=861#comment-38177</guid>
		<description>It&#039;s a good idea, Martin, but it doesn&#039;t work. The fallback to the previous &lt;code&gt;background-image&lt;/code&gt; declaration would only happen if the browser didn&#039;t understand the multiple syntax. However, some browsers - notably Firefox - &lt;strong&gt;do&lt;/strong&gt; understand the syntax, so the fallback doesn&#039;t occur, but can&#039;t locate the file for the &lt;code&gt;background-image&lt;/code&gt;, so treat it as &lt;i&gt;none&lt;/i&gt;.</description>
		<content:encoded><![CDATA[<p>It’s a good idea, Martin, but it doesn’t work. The fallback to the previous <code>background-image</code> declaration would only happen if the browser didn’t understand the multiple syntax. However, some browsers — notably Firefox — <strong>do</strong> understand the syntax, so the fallback doesn’t occur, but can’t locate the file for the <code>background-image</code>, so treat it as <i>none</i>.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Martin</title>
		<link>http://www.broken-links.com/2010/06/14/using-svg-in-backgrounds-with-png-fallback/#comment-38173</link>
		<dc:creator>Martin</dc:creator>
		<pubDate>Tue, 15 Jun 2010 18:35:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.broken-links.com/?p=861#comment-38173</guid>
		<description>Why can&#039;t you do this:

E {
background-image:  url(&#039;image.png&#039;);
background-image:  url(&#039;image.svg&#039;), url(&#039;image_that_doesnt_exist.png&#039;);
background-size: 100% 100%;
}</description>
		<content:encoded><![CDATA[<p>Why can’t you do this:</p>
<p>E {<br />
background-image:  url(‘image.png’);<br />
background-image:  url(‘image.svg’), url(‘image_that_doesnt_exist.png’);<br />
background-size: 100% 100%;<br />
}</p>
]]></content:encoded>
	</item>
</channel>
</rss>

