<?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; mozilla</title>
	<atom:link href="http://www.codedread.com/blog/archives/tag/mozilla/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>Oh The Things You&#8217;ll Learn</title>
		<link>http://www.codedread.com/blog/archives/2009/06/27/oh-the-things-youll-learn/</link>
		<comments>http://www.codedread.com/blog/archives/2009/06/27/oh-the-things-youll-learn/#comments</comments>
		<pubDate>Sat, 27 Jun 2009 14:35:25 +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[CSS]]></category>
		<category><![CDATA[mozilla]]></category>
		<category><![CDATA[w3c]]></category>

		<guid isPermaLink="false">http://blog.codedread.com/archives/2009/06/27/oh-the-things-youll-learn/</guid>
		<description><![CDATA[I was playing around with a new project recently and wanted to figure out the complementary color of a given color. All you need for this are the RGB values of the color for which you want to find the complement. There are lots of ways of specifying a color on the Open Web: rgb(255,0,0) [...]]]></description>
			<content:encoded><![CDATA[<p><object type="image/svg+xml" width="100" height="100" style="float:right" data="http://codedread.com/clipart/html.svgz"><span/></object>I was playing around with a <a href="http://jgraduate.googlecode.com/">new project</a> recently and wanted to figure out the <a href="http://en.wikipedia.org/wiki/Complementary_color">complementary color</a> of a given color.  All you need for this are the RGB values of the color for which you want to find the complement.</p>
<p>There are lots of ways of specifying a color on the Open Web:</p>
<ul>
<li>rgb(255,0,0)</li>
<li>rgb(100%,0,0)</li>
<li>#FF0000</li>
<li>#F00</li>
<li>&#8220;red&#8221;</li>
</ul>
<p>And it&#8217;s not just the <a href="http://www.w3.org/TR/CSS2/syndata.html#color-units">17 CSS color names</a>, there are 147 cool-sounding extended color names like <a href="http://www.w3.org/TR/SVG/types.html#ColorKeywords">papayawhip</a>.  So given that a user can input a color in all sorts of ways, what&#8217;s the right way to do this? <span id="more-539"></span></p>
<h3>The Hard Way</h3>
<p>You can build a parser that determines the color format, parses hex and rgb strings and has a table that maps 147 strings to rgb triplets.  It turns out there are a lot of JavaScript libraries that already do this.  <a href="http://code.google.com/p/jquery-color-utils/">Here&#8217;s one</a>.</p>
<p>But then I thought:  why am I including yet another JavaScript library to do this parsing when the browser must already know how to map from hex, rgb or color name to an RGB triplet (or equivalent) in order to render the color in the first place?  Surely there&#8217;s a way to extract this directly out of the DOM?</p>
<h3>The DOM Way</h3>
<p>It turns out there is.  It&#8217;s called the <a href="http://www.w3.org/TR/DOM-Level-2-Style/Overview.html">CSS DOM</a> and I always seem to forget about this document.  Piecing together information from the <a href="http://www.w3.org/TR/SVG11/types.html#InterfaceSVGStylable">SVG</a> <a href="http://www.w3.org/TR/SVG11/types.html#InterfaceSVGColor">DOM</a> and the <a href="http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-RGBColor">CSS</a> <a href="http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSPrimitiveValue">DOM</a>, this is how you would get the red value of a fill attribute on a circle:</p>
<p><code>var red = someCircle.getPresentationAttribute("fill").rgbColor.red.getFloatValue(1);</code></p>
<p>That&#8217;s just a bit perverse, but at least it&#8217;s possible.</p>
<p>In testing this I was delighted to discover that Opera and WebKit let me do it.  Sadly, <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=500888">Firefox does not</a>.</p>
<h3>The Best-Laid Plans&#8230;</h3>
<p><object type="image/svg+xml" width="100" height="100" style="float:right" data="http://codedread.com/clipart/facepalm.svgz"><span/></object>Here&#8217;s where the plot thickens.  Seems like the CSS Working Group was chartered to produce a new version of the CSS DOM to make the interfaces less clunky.  Seems like the CSS WG sent out a notice <a href="http://lists.w3.org/Archives/Public/www-style/2003Oct/0347.html">strongly warning browsers</a> not to implement certain DOM interfaces in the CSS DOM.  Seems like it&#8217;s six years later and there&#8217;s no new document.</p>
<p>Unfortunately this is where my sad little tale ends.  <a href="http://twitter.com/erikdahlstrom/status/2357983806">Erik of Opera</a> suggests that the SVGT 1.2 uDOM is really the right way to do this.  It doesn&#8217;t matter that I agree with him because I don&#8217;t think Webkit or Mozilla have any interest in implementing this any time soon.</p>
<p>It seems kind of sad that folks have to write JavaScript libraries to do color parsing when the browsers already do this natively.  It also seems really weird that the SVG DOM interfaces extend obsolete CSS DOM interfaces (SVGColor extends CSSValue which Bert Bos mentions in his email).</p>
<p>#DOMFAIL ?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.codedread.com/blog/archives/2009/06/27/oh-the-things-youll-learn/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>So&#8230; What&#8217;d I Miss?</title>
		<link>http://www.codedread.com/blog/archives/2009/01/30/so-whatd-i-miss/</link>
		<comments>http://www.codedread.com/blog/archives/2009/01/30/so-whatd-i-miss/#comments</comments>
		<pubDate>Sat, 31 Jan 2009 04:52:31 +0000</pubDate>
		<dc:creator>Jeff</dc:creator>
				<category><![CDATA[Google]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[SVG]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[IE]]></category>
		<category><![CDATA[mozilla]]></category>
		<category><![CDATA[qt]]></category>
		<category><![CDATA[smil]]></category>

		<guid isPermaLink="false">http://blog.codedread.com/archives/2009/01/30/so-whatd-i-miss/</guid>
		<description><![CDATA[So having gone through my 1000+ unread feed items, emails, blog comments and sundries, here&#8217;s what I think I missed while on our pilgrimage to worship a mouse in the south. Feel free to clue me in further in the comments below. Oh, and the vacation was fantastic, fwiw, though I did miss internet access [...]]]></description>
			<content:encoded><![CDATA[<p><object type="image/svg+xml" width="100" height="100" style="float:right" data="http://codedread.com/clipart/palmtree.svgz"><span/></object>So having gone through my 1000+ unread feed items, emails, blog comments and sundries, here&#8217;s what I think I missed while on our pilgrimage to worship a <a href="http://www.disney.com/" title="Walt Disney World">mouse in the south</a>.  Feel free to clue me in further in the comments below.  Oh, and the vacation was fantastic, fwiw, though I did miss internet access that wasn&#8217;t filtered through the foggy and tiny lens of <a href="http://en.wikipedia.org/wiki/Wireless_Markup_Language" title="Wireless Markup Language">WML</a>.  I gots to get me one of them new-fangled phones that can browse the real web real soon now.<span id="more-519"></span></p>
<h3 id="svg-support-tables-interactive">SVG Support Tables Now Interactive</h3>
<p><object type="image/svg+xml" width="100" height="100" style="float:right" data="http://codedread.com/clipart/svg.svgz"><span/></object><a href="http://blog.codedread.com/archives/2007/04/21/grading-svg-implementations/#comment-12829">Someone</a> mashed together the data I publish with my <a href="http://www.codedread.com/svg-support.php">SVG support</a> tables and made it much more <a href="http://databathing.com/SVG/">interactive and useful</a>! Great! That&#8217;s what makes the web so cool:  sharing. Now to see if I can break his scraping script&#8230; Joking! <img src='http://www.codedread.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<h3 id="ie9-hearts-svg">IE9 Likely To Support SVG?!?</h3>
<p><object type="image/svg+xml" width="100" height="100" style="float:right" data="http://codedread.com/clipart/ie.svgz"><span/></object>As &#8220;reported&#8221; in Wired and Ajaxian: <a href="http://blog.wired.com/business/2009/01/more-details-ab.html" title="Is IE9 Likely To Support SVG?">Golly.</a> How much? When? What version/profile? Sorry, but it seems that this is a <a href="http://tech.groups.yahoo.com/group/svg-developers/message/61809">misinterpretation</a> of the standard <a href="http://www.microsoft.com/windowsxp/expertzone/chats/transcripts/08_1016_ez_ie8.mspx#element(contentTableDIV/175)" title="If you haven't installed my FXPointer extension, search for 'adding SVG support' on that page">SVG party line from Microsoft</a>. Mumble, grumble, integrity&#8230; journalism&#8230; something, something, mumble&#8230;</p>
<h3 id="mozilla-smil-progress">More Mozilla SMIL Progress</h3>
<p><object type="image/svg+xml" width="100" height="100" style="float:right" data="http://codedread.com/clipart/mozilla.svgz"><span/></object><object type="image/svg+xml" width="100" height="100" style="float:right" data="http://codedread.com/clipart/smile.svgz"><span/></object><a href="http://brian.sol1.net/svg/2009/01/22/beached-as-bro/">Brian Birtles</a> posts on the latest progress on Mozilla implementing SMIL-in-SVG.  I&#8217;m hoping to see SMIL pick up, particularly as browser native support improves further. Of course you can get a headstart on this by using the <a href="http://leunen.d.free.fr/fakesmile/index.html">FakeSmile</a> shim right now in 4 of the 5 big browsers.</p>
<h3 id="qt-rising">Qt Winning Votes?</h3>
<p><object type="image/svg+xml" width="100" height="100" style="float:right" data="http://codedread.com/clipart/qt.svgz"><span/></object><a href="http://cdtdoug.blogspot.com/" title="Doug Schaefer on Eclipse CDT">Doug</a> seems to agree with me that a <a href="http://cdtdoug.blogspot.com/2009/01/can-lgpl-qt-give-c-lift.html">LGPL for Qt</a> could be a big game changer. I admit, I&#8217;ve always had a soft spot for Qt, but the recent news that it will be available to commercial projects without purchasing a license from Nokia is getting a lot of people excited &#8211; even heavy fans of Java <img src='http://www.codedread.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<h3 id="google-io-2009">Google I/O Registration Open</h3>
<p><object type="image/svg+xml" width="100" height="100" style="float:right" data="http://codedread.com/clipart/google.svgz"><span/></object>I might actually try to attend the <a href="http://code.google.com/events/io/">Google I/O</a> conference this year in May.  <a href="http://www.latenightpc.com/blog" title="Rob Russell's Blog">Rob</a> and I tried to get our ducks in a row last year but the planning never crystallized.  I&#8217;ve been doing some playing with Android recently, so there&#8217;s actually a reason for me to go this year.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.codedread.com/blog/archives/2009/01/30/so-whatd-i-miss/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Put The Students To Work!</title>
		<link>http://www.codedread.com/blog/archives/2009/01/20/put-the-students-to-work/</link>
		<comments>http://www.codedread.com/blog/archives/2009/01/20/put-the-students-to-work/#comments</comments>
		<pubDate>Tue, 20 Jan 2009 22:04:59 +0000</pubDate>
		<dc:creator>Jeff</dc:creator>
				<category><![CDATA[Firefox]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[SVG]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[mozilla]]></category>

		<guid isPermaLink="false">http://blog.codedread.com/archives/2009/01/20/put-the-students-to-work/</guid>
		<description><![CDATA[I&#8217;m delightfully surprised at how much attention Mozilla is apparently giving SVG. First they&#8217;ve hired jwatt to work full-time on SVG. Now it looks like some students also have an interest in advancing the SVG implementation within Mozilla. Great! I don&#8217;t have the experience of a seasoned Mozilla hacker (only a couple patches years ago), [...]]]></description>
			<content:encoded><![CDATA[<p><object type="image/svg+xml" width="100" height="100" style="float:right" data="http://codedread.com/clipart/svg.svgz"><span/></object><object type="image/svg+xml" width="100" height="100" style="float:right" data="http://codedread.com/clipart/mozilla.svgz"><span/></object>I&#8217;m delightfully surprised at how much attention Mozilla is apparently giving <a href="http://www.w3.org/Graphics/SVG" title="Scalable Vector Graphics">SVG</a>.  First they&#8217;ve hired <a href="http://jwatt.org/" title="Jonathan Watt">jwatt</a> to work full-time on SVG.  Now it looks like <a href="http://groups.google.com/group/mozilla.dev.tech.svg/browse_thread/thread/ddaf1fc5863294fc/86e4ea9c947b42fa?show_docid=86e4ea9c947b42fa">some students</a> also have an interest in advancing the SVG implementation within Mozilla.  <a href="http://blog.codedread.com/archives/2008/08/15/patches-for-credits/">Great!</a></p>
<p>I don&#8217;t have the experience of a seasoned Mozilla hacker (only a couple patches years ago), but I do know that SMIL, SVG Fonts, SVG in CSS and SVG text-specific edge cases could use some work from a SVG 1.1 perspective.  Hopefully they get in contact with jwatt, rlongson, roc, dholbert and birtles and get some ideas rolling&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.codedread.com/blog/archives/2009/01/20/put-the-students-to-work/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Houston, the SMIL has landed</title>
		<link>http://www.codedread.com/blog/archives/2009/01/15/houston-the-smil-has-landed/</link>
		<comments>http://www.codedread.com/blog/archives/2009/01/15/houston-the-smil-has-landed/#comments</comments>
		<pubDate>Thu, 15 Jan 2009 06:38:53 +0000</pubDate>
		<dc:creator>Jeff</dc:creator>
				<category><![CDATA[Firefox]]></category>
		<category><![CDATA[RIA]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[SVG]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[animation]]></category>
		<category><![CDATA[mozilla]]></category>
		<category><![CDATA[smil]]></category>

		<guid isPermaLink="false">http://blog.codedread.com/archives/2009/01/15/houston-the-smil-has-landed/</guid>
		<description><![CDATA[This day was five-and-a-half years in the making: the initial patch to add SMIL support has landed on Mozilla trunk. SMIL is the Open Web way of doing declarative animation, I use it on my site here and there via FakeSmile. This Mozilla patch is partial support for SMIL within SVG only (not HTML). Note [...]]]></description>
			<content:encoded><![CDATA[<p><object type="image/svg+xml" width="100" height="100" style="float:right" data="http://codedread.com/clipart/mozilla.svgz"><span/></object><object type="image/svg+xml" width="100" height="100" style="float:right" data="http://codedread.com/clipart/smile.svgz"><span/></object><a href="https://bugzilla.mozilla.org/show_bug.cgi?id=216462#c181">This day</a> was five-and-a-half years in the making:  the initial patch to add SMIL support has landed on Mozilla trunk.  SMIL is the Open Web way of doing declarative animation, I use it on my site here and there via <a href="http://leunen.d.free.fr/fakesmile/index.html" title="FakeSmile is a JavaScript workaround to give browsers some support for SMIL+SVG">FakeSmile</a>.  This Mozilla patch is partial support for SMIL within SVG only (not HTML).  Note that SMIL support is disabled in the build by default, as <a href="http://weblogs.mozillazine.org/roc/archives/2009/01/post31_plans.html">roc says</a> &#8220;we should enable it when we&#8217;ve got enough implemented that we wouldn&#8217;t feel embarrassed about shipping it. &#8221; &#8211; but this is a significant step forward.</p>
<p>Thanks and congratulations go to <a href="http://blog.dholbert.org/2009/01/smil-support-has-landed.html" title="Daniel Holbert's blog">Daniel</a>, <a href="http://brian.sol1.net/svg/">Brian</a> and <a href="http://weblogs.mozillazine.org/roc/">Robert</a>!  Also thanks to <a href="http://my.opera.com/MacDev_ed/blog/">Erik</a> and <a href="http://ln.hixie.ch/">Ian</a> for putting some SMIL tests into Acid3.  Not that this had anything to do with it.  Oh, no. <img src='http://www.codedread.com/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>Opera has supported SMIL in SVG for a couple years now.  Anyone want to place bets on who will be the second to release a browser that supports it? Mozilla? Apple? Google?  Microsoft?  What, did I say something funny?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.codedread.com/blog/archives/2009/01/15/houston-the-smil-has-landed/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Ubuntu 7.10 Dash Crash</title>
		<link>http://www.codedread.com/blog/archives/2008/07/25/ubuntu-710-dash-crash/</link>
		<comments>http://www.codedread.com/blog/archives/2008/07/25/ubuntu-710-dash-crash/#comments</comments>
		<pubDate>Fri, 25 Jul 2008 23:55:45 +0000</pubDate>
		<dc:creator>Jeff</dc:creator>
				<category><![CDATA[Firefox]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[dash]]></category>
		<category><![CDATA[mozilla]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://blog.codedread.com/archives/2008/07/25/ubuntu-710-dash-crash/</guid>
		<description><![CDATA[I recently tried to compile Daniel Holbert&#8217;s SMIL patches in mozilla-central. While doing this, I observed the &#8220;configure&#8221; was core dumping. The folks in the #developers channel over on irc.mozilla.org were able to help me out and trace it down to the fact that Ubuntu&#8217;s dash was crashing. I worked around this by changing Mozilla&#8217;s [...]]]></description>
			<content:encoded><![CDATA[<p><object type="image/svg+xml" width="100" height="100" align="right" hspace="10" data="http://codedread.com/clipart/ubuntu.svgz"><span/></object>I recently tried to compile Daniel Holbert&#8217;s <a href="http://hg.mozilla.org/users/dholbert_mozilla.com/smil-patches/">SMIL patches</a> in mozilla-central.  While doing this, I observed the &#8220;configure&#8221; was core dumping.  The folks in the #developers channel over on irc.mozilla.org were able to help me out and trace it down to the fact that Ubuntu&#8217;s <a href="https://wiki.ubuntu.com/DashAsBinSh">dash</a> was crashing.  I worked around this by changing Mozilla&#8217;s configure script to use #!/bin/bash instead of #!/bin/sh.</p>
<p>Apparently this crash has been fixed on Ubuntu 8.10 because Daniel himself hasn&#8217;t witnessed this crash?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.codedread.com/blog/archives/2008/07/25/ubuntu-710-dash-crash/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

