<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>CodeDread Blog &#187; SVG</title>
	<atom:link href="http://www.codedread.com/blog/archives/tag/svg/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.codedread.com/blog</link>
	<description></description>
	<lastBuildDate>Mon, 02 Jan 2012 15:30:52 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>SVG/Canvas Marketshare: Nov 2010</title>
		<link>http://www.codedread.com/blog/archives/2010/12/21/svgcanvas-marketshare-nov-2010/</link>
		<comments>http://www.codedread.com/blog/archives/2010/12/21/svgcanvas-marketshare-nov-2010/#comments</comments>
		<pubDate>Tue, 21 Dec 2010 17:31:48 +0000</pubDate>
		<dc:creator>Jeff</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[SVG]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[browsers]]></category>
		<category><![CDATA[canvas]]></category>

		<guid isPermaLink="false">http://www.codedread.com/blog/?p=995</guid>
		<description><![CDATA[I’ve updated my marketshare spreadsheet for Nov 2010 charting the percentage of web users who can view SVG and Canvas: 44.57% I&#8217;m also tracking what percentage of web users can see SVG in an &#60;img&#62; tag: 18.41%]]></description>
			<content:encoded><![CDATA[<p><img width="100" height="100" style="float:right" src="http://codedread.com/clipart/svg.svgz" alt="I want to believe. SVG as an image format."></img>I’ve updated my marketshare spreadsheet for Nov 2010 charting the percentage of web users who can view SVG and Canvas:  <strong>44.57%</strong></p>
<p><iframe width="400" height="440" src="http://spreadsheets.google.com/pub?key=t5TB0_qFXcrkEndedXkKaug&#038;output=html"/></p>
<p>I&#8217;m also tracking what percentage of web users can see SVG in an &#60;img&#62; tag: 18.41%</p>
]]></content:encoded>
			<wfw:commentRss>http://www.codedread.com/blog/archives/2010/12/21/svgcanvas-marketshare-nov-2010/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Start Chopping Off Heads</title>
		<link>http://www.codedread.com/blog/archives/2010/09/21/start-chopping-off-heads/</link>
		<comments>http://www.codedread.com/blog/archives/2010/09/21/start-chopping-off-heads/#comments</comments>
		<pubDate>Tue, 21 Sep 2010 17:02:10 +0000</pubDate>
		<dc:creator>Jeff</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[SVG]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[html5]]></category>
		<category><![CDATA[w3c]]></category>

		<guid isPermaLink="false">http://www.codedread.com/blog/?p=945</guid>
		<description><![CDATA[Because my kids are now old enough to grok some complex games, I&#8217;ve introduced them to the Magic: The Gathering card game. They love it. I love it. To continue the fun, we went to a local comic book store and bought a couple booster packs, which apparently are still being sold throughout the world. [...]]]></description>
			<content:encoded><![CDATA[<p><img width="100" height="100" style="float:right" src="http://codedread.com/clipart/hydra.svgz" alt="I want to believe. SVG as an image format."></img>Because my kids are now old enough to grok some complex games, I&#8217;ve introduced them to the <a href="http://en.wikipedia.org/wiki/Magic:_the_gathering">Magic: The Gathering</a> card game.  They love it.  I love it.  To continue the fun, we went to a local comic book store and bought a couple booster packs, which apparently are still being sold throughout the world.  One of my kids got a <a href="http://www.amazon.com/Protean-Hydra-Magic-Mythic-Gathering/dp/B002TJX23W">Protean Hydra</a>.  Sweet!  The <a href="http://en.wikipedia.org/wiki/Lernaean_Hydra">Hydra</a> is a mythical beast with nine heads, and every time you chop off a head, two more grow back.</p>
<p>The web is like that.  And we&#8217;re not <a href="http://hsivonen.iki.fi/spacer/">chopping off heads</a> fast enough. <span id="more-945"></span></p>
<p>Now that Internet Explorer has come out of its corner swinging with SVG support, I figured it&#8217;s time to make sure we can actually deploy web pages with SVG content in them.  Did you know that there are at least <em>thirteen</em> ways to deploy SVG on the web?</p>
<ul>
<li>inline in <a href="http://dev.w3.org/html5/spec/the-map-element.html#svg-0">HTML5</a> as <em>not-XML</em> (or !XML as I like to call it)</li>
<li>inline in XHTML (1.1 or 5) as XML</li>
<li>via the <a href="http://dev.w3.org/html5/spec/embedded-content-1.html#the-img-element">HTML:img</a> element</li>
<li>via the <a href="http://dev.w3.org/html5/spec/the-iframe-element.html#the-object-element">HTML:object</a> element</li>
<li>via the <a href="http://dev.w3.org/html5/spec/the-iframe-element.html#the-embed-element">HTML:embed</a> element</li>
<li>via the <a href="http://dev.w3.org/html5/spec/the-iframe-element.html#the-iframe-element">HTML:iframe element</a></li>
<li>via the <a href="http://www.w3.org/TR/2010/WD-SVG11-20100622/struct.html#ImageElement">SVG:image</a> element</li>
<li>via the <a href="http://www.w3.org/TR/2010/WD-SVG11-20100622/extend.html#ForeignObjectElement">SVG:foreignObject</a> element</li>
<li>as a fragment via the <a href="http://www.w3.org/TR/2010/WD-SVG11-20100622/struct.html#UseElement">SVG:use</a> element</li>
<li>via the <a href="http://www.w3.org/TR/CSS2/colors.html#propdef-background-image">background-image</a> CSS property</li>
<li>via the <a href="http://www.w3.org/TR/CSS2/generate.html#propdef-list-style-image">list-image</a> CSS property</li>
<li>via the <a href="http://www.w3.org/TR/2002/WD-css3-border-20021107/#the-border-image-uri">border-image</a> CSS property</li>
<li>directly linking and then browsing to a SVG file</li>
</ul>
<p>Does anyone know why the &#60;embed&#62; element was not deprecated in HTML5?  Was it the realities of the IE deployment difficulties around the &#60;object&#62; tag?  It sounds like IE9 will help to fix that so maybe &#60;embed&#62; can eventually be deprecated in HTML6 five years from now?</p>
<p>What&#8217;s worse is that the properties on the embedding context and the SVG elements affect how the SVG is rendered.  The width/height properties on &#60;object&#62;/&#60;embed&#62;/&#60;iframe&#62; tags.  The width/height/<a href="http://www.w3.org/TR/2010/WD-SVG11-20100622/coords.html#ViewBoxAttribute">viewBox</a> properties on the &#60;svg&#62; element.  The <a href="http://www.w3.org/TR/2010/WD-SVG11-20100622/coords.html#PreserveAspectRatioAttribute">preserveAspectRatio attribute</a> on the &#60;svg&#62; element.</p>
<p>The width attribute on a &#60;svg&#62; element can be specified in units of em, ex, px, in, cm, mm, pt, pc or it can be unitless or it can be a percentage.  Of course the height attribute can be specified in different units.</p>
<p>The embedding context also determines whether scripts are run within the SVG document. Hint: Should not be run in image contexts.</p>
<p><img width="100" height="100" style="float:right" src="http://codedread.com/clipart/caution.svgz" alt="I want to believe. SVG as an image format."></img>But it gets worse.  Let&#8217;s just look at one case: embedding an SVG document in a web page via the &#60;object&#62; tag:</p>
<p><code>&#60;object type='image/svg+xml' data='...'&#62;&#60;/object&#62;</code></p>
<p>For the data attribute you can specify a local file, a http/https URL or a data URI.  The browser can treat each of these cases differently.</p>
<p>The file served to the browser can have a MIME type of image/svg+xml or text/xml or application/xml.  Browsers might do something different in these cases (though they shouldn&#8217;t).</p>
<p>If the width/height on the &#60;object&#62; tag are specified, they should override the &#60;svg&#62; width/height if the &#60;svg&#62; width/height are in absolute (not relative/percentage) units.  The coordinate system of the SVG should map to the viewBox attribute unless the viewBox attribute is not specified, in which case it should be inferred.  Got all that?</p>
<p>If width/height on &#60;object&#62; are not specified, and width/height of the SVG are specified in absolute terms, then the size of the &#60;object&#62; frame should change to match the size of the SVG.</p>
<p>If width/height on &#60;object&#038; are not specified on a Tuesday of a leap year, and the SVG document has an odd-number of bytes in it and includes the string &#8216;rick&#8217; or &#8216;roll&#8217; anywhere in it, then the browser should play a video instead.</p>
<p>I&#8217;m not making this up, it&#8217;s <a href="http://goo.gl/Bxjk">right here</a> in the spec.</p>
<p>Actually the difficulty of this case is that there are so many dimensions and that it&#8217;s spread across multiple specs: HTML, CSS, SVG.  I think WICD/CDF was supposed to address some (all?) of these cases, but &#8230; are those specs actually valid?  And by that I mean, are browser vendors paying attention to them?  As Dolores O&#8217;Riordan might say: Does anyone care?</p>
<p><img width="100" height="150" style="float:right" src="http://codedread.com/clipart/iphone.svgz" alt="I want to believe. SVG as an image format."></img>There&#8217;s something to be said for the simplicity of the iPhone&#8217;s &#8220;one&#8221; button.  Android&#8217;s addition of the &#8220;Back&#8221; button is a perfect example of how a system can be incrementally improved.</p>
<p>Anyway, I&#8217;ve started to look at just three dimensions of this n-dimensional problem:  the HTML embedding context, width/height and viewBox.  I wrote a <a href="http://codedread.com/browser-tests/svg-image/html.html">test case</a> showing the 16 possible combinations.  I was not really shocked that between all the four major browser engines, only one case displayed consistently across all latest builds: as an &#60;img&#62; with width/height specified on both &#60;img&#62; and &#60;svg&#62;.</p>
<p>I&#8217;m really tired of reading specs (I&#8217;m sure this will pass), so in absence of a <a href="http://lists.w3.org/Archives/Public/www-svg/2010Sep/0081.html">reference rendering</a> of this page, we&#8217;ll just need to do what we always do: Make it look the same across all browsers.  Now that we have IE9, it can act as a tie-breaker between renderings that could be argued one way or the other <img src='http://www.codedread.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Hopefully I&#8217;ll be able to talk more about these 16 cases in the future.  Now you know where to come if you&#8217;re having trouble sleeping.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.codedread.com/blog/archives/2010/09/21/start-chopping-off-heads/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>SVG/Canvas Marketshare: Aug 2010</title>
		<link>http://www.codedread.com/blog/archives/2010/09/12/svgcanvas-marketshare-aug-2010/</link>
		<comments>http://www.codedread.com/blog/archives/2010/09/12/svgcanvas-marketshare-aug-2010/#comments</comments>
		<pubDate>Sun, 12 Sep 2010 16:33:21 +0000</pubDate>
		<dc:creator>Jeff</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[SVG]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[browsers]]></category>
		<category><![CDATA[canvas]]></category>

		<guid isPermaLink="false">http://www.codedread.com/blog/?p=921</guid>
		<description><![CDATA[I’ve updated my marketshare spreadsheet for Aug 2010 charting the percentage of web users who can view SVG and Canvas: 41.08% Still looking for more stats sites &#8211; it seems that W3Counter is also not reliable (their public web stats for August were still not generated as of Sep 12th).]]></description>
			<content:encoded><![CDATA[<p><img width="100" height="100" style="float:right" src="http://codedread.com/clipart/svg.svgz" alt="I want to believe. SVG as an image format."></img>I’ve updated my marketshare spreadsheet for Aug 2010 charting the percentage of web users who can view SVG and Canvas:  <strong>41.08%</strong></p>
<p><iframe width="300" height="360" src="http://spreadsheets.google.com/pub?key=t5TB0_qFXcrkEndedXkKaug&#038;output=html"/></p>
<p>Still looking for more stats sites &#8211; it seems that W3Counter is also not reliable (their public web stats for August were still not generated as of Sep 12th).</p>
]]></content:encoded>
			<wfw:commentRss>http://www.codedread.com/blog/archives/2010/09/12/svgcanvas-marketshare-aug-2010/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New Shit Has Come To Light</title>
		<link>http://www.codedread.com/blog/archives/2010/09/10/new-shit-has-come-to-light/</link>
		<comments>http://www.codedread.com/blog/archives/2010/09/10/new-shit-has-come-to-light/#comments</comments>
		<pubDate>Fri, 10 Sep 2010 17:04:34 +0000</pubDate>
		<dc:creator>Jeff</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[SVG]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[images]]></category>

		<guid isPermaLink="false">http://www.codedread.com/blog/?p=926</guid>
		<description><![CDATA[Those wacky Mozilla guys just fixed a bug I&#8217;ve been waiting years for: They now support SVG in &#60;img&#62; tags (and in most image contexts, for example background-image). This will be available in Firefox 4 Beta 6 and beyond (or download a nightly). See SVG really has two roles on the web scene: as document [...]]]></description>
			<content:encoded><![CDATA[<p><img width="100" height="100" style="float:right" src="http://codedread.com/clipart/beer-mug.svgz" alt="I want to believe. SVG as an image format."></img>Those wacky Mozilla <a href="http://blog.dholbert.org/" title="Ok, just one guy, Daniel, but he had help reviewing!">guys</a> just fixed <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=276431">a bug</a> I&#8217;ve been waiting years for:  They now support SVG in &#60;img&#62; tags (and in most image contexts, for example background-image).  This will be available in Firefox 4 Beta 6 and beyond (or <a href="http://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/latest-trunk/">download a nightly</a>).<span id="more-926"></span></p>
<p>See SVG really has two roles on the web scene:  as document and as image.  For a long time I&#8217;ve been really excited about SVG-as-a-document because web documents have a DOM, are scriptable, can be styled, have semantics &#8211; that goody bag is really stuffed.  I&#8217;ve been less excited about SVG-as-an-image because frankly it hardly worked anywhere and I had no prospect of the situation improving.  Now that Firefox is finally onboard and IE9 is waiting in the wings we are about to embark on a new era of capabilities for the web that we can begin to rely on in less than a year.</p>
<p>Why is it important?</p>
<p>For one, SVG-as-an-image means that your images scale perfectly at any screen resolution.  This will generally mean crisper images than their uncouth raster cousins with no lossiness.</p>
<p><img width="100" height="100" style="float:right" src="http://codedread.com/clipart/tools.svgz" alt="I want to believe. SVG as an image format."></img>For two, SVG images <em>can</em> be smaller in size than their equivalent raster counterpart (especially when gzipped).  This is dependent upon the level of detail you&#8217;ve put into the image and the tools that produced the image.  Tav just published <a href="http://tavmjong.free.fr/blog/?p=79">an article</a> about how to improve this and I&#8217;ve talked long about <a href="http://codedread.com/scour">scour</a> in the past too.  Keep up, will ya?</p>
<p>So SVG images can look better and have fewer bytes than their raster counterparts.  Booyahs all the way around.</p>
<p>And they can go a lot more places than the &#60;object&#62; tag.  Feed readers, for one.</p>
<p>Of course there are challenges:</p>
<ul>
<li>Not ubiquitous.  Yet.  We have to wait at least a year or more for that to be the case on the desktop but now there is definite momentum.  Android appears to be the only holdout on the mobile web side and it&#8217;s being looked at.  Let&#8217;s circle back in a year, mkay?</li>
<li>Performance?  SVG images have more capabilities than a standard raster image (declarative animation, external styling) so I would suspect SVG images require more juice to display.  <a href="http://www.latenightpc.com/blog">Rob</a> and others talked about SVG performance at this year&#8217;s <a href="http://svgopen.org/" title="Argh, I wish I could have made it!">SVG Open</a>.  Frankly I suspect that things can be done on the browser side to optimize this case, so I look forward to learning more when you comment on my blog <img src='http://www.codedread.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </li>
<li>Lot of crufty SVG out there.  This situation is improving too over time.</li>
<li>Some SVGs don&#8217;t have an intrinsic size (gee I hope I&#8217;m using this term right) and most things expect an image to have a size.  PNG files contain their width/height in the bytes of the file header.  The width/height values on &#60;svg&#62; elements default to 100%/100%.  Some browsers have a problem with this (ok, WebKit mostly).  If you want to use SVG files as images, I suggest you start fixing WebKit bugs (or update your SVG files to have an explicit width/height).  Can someone (Doug? Fantasai?) clarify what is supposed to happen if an SVG file has width/height at 100% and the &#60;img&#62; tag does not specify a width/height?</li>
<li>Not a lot of software/services accept SVG as an image type yet.  I&#8217;m looking straight at you to help me change this.</li>
</ul>
<p><img width="100" height="100" style="float:right" src="http://codedread.com/clipart/villain.svgz" alt="I want to believe. SVG as an image format."></img>So my take is that we&#8217;re at about 15% of web users who can actually see SVG images (as compared to about 40% of web users that can see SVG documents).  Since I&#8217;m such a SVG <del>fascist</del> <ins>fan</ins> I&#8217;ve decided to change my WordPress clipart quicktag to use &#60;img&#62; instead of &#60;object&#62;.  This means that a lot of you Firefox users won&#8217;t be able to see my blog clipart and for that I apologize up-front.  Come back and read it when you&#8217;re using Firefox 4?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.codedread.com/blog/archives/2010/09/10/new-shit-has-come-to-light/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>SVG/Canvas Marketshare: June 2010</title>
		<link>http://www.codedread.com/blog/archives/2010/07/11/svgcanvas-marketshare-june-2010/</link>
		<comments>http://www.codedread.com/blog/archives/2010/07/11/svgcanvas-marketshare-june-2010/#comments</comments>
		<pubDate>Sun, 11 Jul 2010 06:47:33 +0000</pubDate>
		<dc:creator>Jeff</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[browsers]]></category>
		<category><![CDATA[canvas]]></category>
		<category><![CDATA[SVG]]></category>

		<guid isPermaLink="false">http://www.codedread.com/blog/?p=912</guid>
		<description><![CDATA[[clipart]I’ve updated my marketshare spreadsheet for June 2010 charting the percentage of web users who can view SVG and Canvas: 41.49% Note that I added &#8220;Canvas&#8221; back into the title of these blog posts, now that it is public that IE9 is supporting the HTML5 &#60;canvas&#62; element. I&#8217;ve also added SVG-as-an-image (usable inside &#60;img&#62; or [...]]]></description>
			<content:encoded><![CDATA[<p><object type="image/svg+xml" width="100" height="100" style="float:right" data="http://codedread.com/clipart/svg.svgz">[clipart]</object>I’ve updated my marketshare spreadsheet for June 2010 charting the percentage of web users who can view SVG and Canvas:  <strong>41.49%</strong></p>
<p><iframe width="300" height="360" src="http://spreadsheets.google.com/pub?key=t5TB0_qFXcrkEndedXkKaug&#038;output=html"/></p>
<p>Note that I added &#8220;Canvas&#8221; back into the title of these blog posts, now that it is public that IE9 is supporting the HTML5 &#60;canvas&#62; element.  I&#8217;ve also added SVG-as-an-image (usable inside &#60;img&#62; or as a CSS background-image), since that&#8217;s something that seems likely to be supported soon by all browsers (Firefox 4, IE9).</p>
<p>P.S. This figure does not take into account any user that has a SVG plugin installed or authors who have used the excellent SVG Web or excanvas shims, so this is really a worst-case number.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.codedread.com/blog/archives/2010/07/11/svgcanvas-marketshare-june-2010/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>IE9: No longer failing</title>
		<link>http://www.codedread.com/blog/archives/2010/06/24/ie9-no-longer-failing/</link>
		<comments>http://www.codedread.com/blog/archives/2010/06/24/ie9-no-longer-failing/#comments</comments>
		<pubDate>Thu, 24 Jun 2010 16:24:26 +0000</pubDate>
		<dc:creator>Jeff</dc:creator>
				<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[SVG]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[ie9]]></category>

		<guid isPermaLink="false">http://www.codedread.com/blog/?p=908</guid>
		<description><![CDATA[[clipart]Ok, after getting IE9 preview 3 installed last night, I was able to update my SVG scorechart. I&#8217;m pleased to say that I would now unequivocally classify IE9 as a browser that supports SVG. Supporting gradients, patterns, masking, clipping and more actually gained them quite a few points. I&#8217;m also pleased to see that they [...]]]></description>
			<content:encoded><![CDATA[<p><object type="image/svg+xml" width="100" height="100" style="float:right" data="http://codedread.com/clipart/svg.svgz">[clipart]</object>Ok, after getting IE9 preview 3 installed last night, I was able to update my <a href="http://codedread.com/svg-support.php">SVG scorechart</a>.  I&#8217;m pleased to say that I would now unequivocally classify IE9 as a browser that supports SVG.  Supporting gradients, patterns, masking, clipping and more actually gained them quite a few points. </p>
<p>I&#8217;m also pleased to see that they support conditional processing (the &#60;switch&#62; element) so you can see at a rough glance what feature strings they claim to support by accessing <a href="http://codedread.com/svgtest.svg">this page</a> I made years ago.  Not a bad feature set for first time out! Kudos to the IE team!</p>
<p>And they support &#60;canvas&#62; too!</p>
<p>In my brief look at IE9 while running through the SVG tests, I would say their biggest areas to improve on before final release are text (especially text selection) and DOM.  Though <a href="http://a.deveria.com/">Alexis</a> assures me that they do pass quite a number of <a href="http://svgtorture.googlecode.com/svn/trunk/automated/test.html">SVG torture tests</a>.  </p>
<p>Hey, now that we have all major browsers supporting basic SVG rendering, it&#8217;s really time to ramp up the effort on <a href="http://code.google.com/p/svgtorture/">SVG Torture Tests</a> to ensure DOM coverage and corner cases.  We are looking for someone to lead this activity in the <a href="http://www.w3.org/Graphics/SVG/IG/">SVG Interest Group</a>.</p>
<p>Oh, and I would love to have <a href="http://svg-edit.googlecode.com/">SVG-edit</a> working in IE9.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.codedread.com/blog/archives/2010/06/24/ie9-no-longer-failing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SVG Marketshare: May 2010</title>
		<link>http://www.codedread.com/blog/archives/2010/06/07/svg-marketshare-may-2010/</link>
		<comments>http://www.codedread.com/blog/archives/2010/06/07/svg-marketshare-may-2010/#comments</comments>
		<pubDate>Mon, 07 Jun 2010 05:46:05 +0000</pubDate>
		<dc:creator>Jeff</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[SVG]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://www.codedread.com/blog/?p=899</guid>
		<description><![CDATA[[clipart]I’ve updated my marketshare spreadsheet for May 2010 charting the percentage of web users who can view SVG: 40.55% P.S. This figure does not take into account any user that has a SVG plugin installed or authors who have used the excellent SVG Web shim, so this is really a worst-case number.]]></description>
			<content:encoded><![CDATA[<p><object type="image/svg+xml" width="100" height="100" style="float:right" data="http://codedread.com/clipart/svg.svgz">[clipart]</object>I’ve updated my marketshare spreadsheet for May 2010 charting the percentage of web users who can view SVG:  <strong>40.55%</strong></p>
<p><iframe width="300" height="360" src="http://spreadsheets.google.com/pub?key=t5TB0_qFXcrkEndedXkKaug&#038;output=html"/></p>
<p>P.S. This figure does not take into account any user that has a SVG plugin installed or authors who have used the excellent SVG Web shim, so this is really a worst-case number.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.codedread.com/blog/archives/2010/06/07/svg-marketshare-may-2010/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>SVG Marketshare: April 2010</title>
		<link>http://www.codedread.com/blog/archives/2010/05/06/svg-marketshare-april-2010/</link>
		<comments>http://www.codedread.com/blog/archives/2010/05/06/svg-marketshare-april-2010/#comments</comments>
		<pubDate>Thu, 06 May 2010 19:12:56 +0000</pubDate>
		<dc:creator>Jeff</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[SVG]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://www.codedread.com/blog/?p=865</guid>
		<description><![CDATA[[clipart]I’ve updated my marketshare spreadsheet for April 2010 charting the percentage of web users who can view SVG: 40.26% P.S. This figure does not take into account any user that has a SVG plugin installed or authors who have used the excellent SVG Web shim, so this is really a worst-case number.]]></description>
			<content:encoded><![CDATA[<p><object type="image/svg+xml" width="100" height="100" style="float:right" data="http://codedread.com/clipart/svg.svgz">[clipart]</object>I’ve updated my marketshare spreadsheet for April 2010 charting the percentage of web users who can view SVG:  <strong>40.26%</strong></p>
<p><iframe width="300" height="360" src="http://spreadsheets.google.com/pub?key=t5TB0_qFXcrkEndedXkKaug&#038;output=html"/></p>
<p>P.S. This figure does not take into account any user that has a SVG plugin installed or authors who have used the excellent SVG Web shim, so this is really a worst-case number.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.codedread.com/blog/archives/2010/05/06/svg-marketshare-april-2010/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SVG/Canvas Marketshare: Mar 2010</title>
		<link>http://www.codedread.com/blog/archives/2010/04/05/svgcanvas-marketshare-mar-2010/</link>
		<comments>http://www.codedread.com/blog/archives/2010/04/05/svgcanvas-marketshare-mar-2010/#comments</comments>
		<pubDate>Mon, 05 Apr 2010 01:16:42 +0000</pubDate>
		<dc:creator>Jeff</dc:creator>
				<category><![CDATA[RIA]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[SVG]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[canvas]]></category>

		<guid isPermaLink="false">http://www.codedread.com/blog/?p=804</guid>
		<description><![CDATA[[clipart]I&#8217;ve updated my marketshare spreadsheet for March 2010 charting the percentage of web users who can view SVG/Canvas: 39.99% Link to spreadsheet P.S. I should mention that this figure does not take into account any user that has a SVG plugin installed or authors who have used the excellent SVG Web or ExplorerCanvas shims, so [...]]]></description>
			<content:encoded><![CDATA[<p><object type="image/svg+xml" width="100" height="100" style="float:right" data="http://codedread.com/clipart/svg.svgz">[clipart]</object>I&#8217;ve updated my marketshare spreadsheet for March 2010 charting the percentage of web users who can view SVG/Canvas:  <b>39.99%</b></p>
<p><iframe width="300" height="350" src="http://spreadsheets.google.com/pub?key=t5TB0_qFXcrkEndedXkKaug&#038;output=html"/><br />
<a href="http://spreadsheets.google.com/pub?key=t5TB0_qFXcrkEndedXkKaug&#038;output=htm">Link to spreadsheet</a></p>
<p>P.S. I should mention that this figure does not take into account any user that has a SVG plugin installed or authors who have used the excellent <a href="http://svgweb.googlecode.com/">SVG Web</a> or <a href="http://excanvas.sourceforge.net/">ExplorerCanvas</a> shims, so this is really a worst-case number.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.codedread.com/blog/archives/2010/04/05/svgcanvas-marketshare-mar-2010/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>To And Fro</title>
		<link>http://www.codedread.com/blog/archives/2010/03/31/to-and-fro/</link>
		<comments>http://www.codedread.com/blog/archives/2010/03/31/to-and-fro/#comments</comments>
		<pubDate>Wed, 31 Mar 2010 13:45:23 +0000</pubDate>
		<dc:creator>Jeff</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[RIA]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[SVG]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[canvas]]></category>

		<guid isPermaLink="false">http://www.codedread.com/blog/?p=782</guid>
		<description><![CDATA[[clipart]Issue 70 has been open for awhile now. In fact it&#8217;s one of just a handful of two-digit bugs left in SVG-edit. Now that all browsers have heralded support for SVG into the future, one might argue that the need for this bug will evaporate in a couple years. However, one would be wrong. First, [...]]]></description>
			<content:encoded><![CDATA[<p><object type="image/svg+xml" width="100" height="100" style="float:right" data="http://codedread.com/clipart/recycling.svgz">[clipart]</object><a href="http://code.google.com/p/svg-edit/issues/detail?id=70" title="Convert SVG to PNG">Issue 70</a> has been open for awhile now.  In fact it&#8217;s one of just a handful of two-digit bugs left in <a href="http://code.google.com/p/svg-edit/issues/list">SVG-edit</a>.  Now that all browsers have heralded support for SVG into the future, one might argue that the need for this bug will evaporate in a couple years.  However, one would be wrong.  First, there are lots of mobile browsers out there.  Second, in some cases it could be easier to just tell the browser how to draw a collection of dots rather than mathematical instructions (think thumbnails).  So how to solve it?<span id="more-782"></span></p>
<p>One thought that occurred to me is if I can shove the SVG into a HTML5 Canvas element, I can then call <a href="http://dev.w3.org/html5/canvas-api/canvas-2d-api.html#dom-canvas-todataurl">toDataURI()</a> on it to generate a PNG.  Unfortunately only <a href="http://lists.w3.org/Archives/Public/public-html/2007Oct/0320.html">Opera seems to have experimented</a> with loading SVG into a Canvas directly.  Also, there are many effects that can be done in SVG that cannot be done in Canvas (filters, fonts, and more).</p>
<p>The <a href="http://dev.w3.org/html5/canvas-api/canvas-2d-api.html#section-canvas-interface-element">Canvas2D API</a> does mention that in the future, the svg:image element may support <a href="http://dev.w3.org/html5/canvas-api/canvas-2d-api.html#the-canvas-interface-element">the CanvasElement DOM interface</a>.  I&#8217;m anticipating Microsoft to announce &#60;canvas&#62; support for IE9 later this year and probably to support this interface on svg:image elements.  It&#8217;s one way they can innovate on the web standards front while they continue to catch up to other modern browsers.</p>
<p>This would be good, but why only the <a href="http://www.w3.org/TR/SVG11/struct.html#ImageElement">svg:image element</a>?  I&#8217;d argue that any element that contains some geometry could gain the toDataURI() method (particularly useful would be the &#60;svg&#62; element here).</p>
<p>Until such time as browsers all get in sync, there are other options.  <a href="http://canvg.googlecode.com/">canvg</a> is one such option and I&#8217;ve been dutifully raising bugs and writing teeny patches but there&#8217;s a long ways to go for a robust solution.</p>
<p>Ultimately this is another case of <a href="http://www.codedread.com/blog/archives/2009/06/27/oh-the-things-youll-learn/">why am I doing something in script that all browsers already know how to do</a>?  You really have to think long-term in the web space, don&#8217;t you? <img src='http://www.codedread.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Other ideas?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.codedread.com/blog/archives/2010/03/31/to-and-fro/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

