<?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>Mozilla Web Development &#187; firebug</title>
	<atom:link href="http://blog.mozilla.com/webdev/tag/firebug/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.mozilla.com/webdev</link>
	<description>Everybody Likes Ninjas</description>
	<lastBuildDate>Wed, 01 Feb 2012 16:41:24 +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>GetFirebug.com redesign launched!</title>
		<link>http://blog.mozilla.com/webdev/2010/02/08/getfirebug-com-redesign-launched/</link>
		<comments>http://blog.mozilla.com/webdev/2010/02/08/getfirebug-com-redesign-launched/#comments</comments>
		<pubDate>Mon, 08 Feb 2010 16:03:05 +0000</pubDate>
		<dc:creator>Neil Lee</dc:creator>
				<category><![CDATA[Design]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[firebug]]></category>
		<category><![CDATA[Sans nom]]></category>

		<guid isPermaLink="false">http://blog.mozilla.com/webdev/2010/02/08/getfirebug-com-redesign-launched/</guid>
		<description><![CDATA[After a much-too-long delay, the GetFirebug.com web site redesign is now live. Here's a few production notes and other thoughts on how the revamped web site for one of the top web development tools came into being.]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;ve happened across the <a href="http://getfirebug.com/">GetFirebug.com</a> web site recently, you&#8217;ll notice everything has a rather pleasant freshly painted smell. After a much-too-long delay, we&#8217;ve finally updated the design and layout for the official Firebug web site, and introduced a lovely new icon by our resident Iconmaster General <a href="http://seanmartell.com/">Sean Martell</a>.</p>
<p>Even with intense competition from tools integrated into other web browsers, Firebug is arguably still the leading web development tool in use, with <a href="https://addons.mozilla.org/en-US/statistics/addon/1843">nearly two million active daily users</a>. Its web site needed to reflect Firebug&#8217;s capabilities more clearly. With that in mind, the primary goals with this redesign were to make the official Firebug web site easier to use, more pleasant to look at, and give Firebug more of a traditional software-style layout to highlight its many positive qualities.</p>
<h2>GetFirebug.com: Before</h2>
<div class="thumbimg"><a href="http://blog.mozilla.com/webdev/files/2010/02/firebug-original1.png"><img style="border:1px solid #aaa" src="http://blog.mozilla.com/webdev/files/2010/02/firebug-original-tm.jpg" alt="firebug-original.png" width="650" height="487" /></a></div>
<h2>GetFirebug.com: After</h2>
<div class="thumbimg"><a href="http://blog.mozilla.com/webdev/files/2010/02/Firebug-new1.png"><img style="border:1px solid #aaa" src="http://blog.mozilla.com/webdev/files/2010/02/Firebug-new-tm.jpg" alt="Firebug-new.png" width="650" height="491" /></a></div>
<p>It&#8217;s a fairly straightforward design, so there&#8217;s not a lot of interesting production notes to highlight, but here&#8217;s some specifics on what went into this redesign:</p>
<ul>
<li>The layout is roughly based on the <a href="http://960.gs/">960 grid system</a>. The original hope was to do the site in a fully fluid layout, but time constrains intervened.</li>
<li>Headers and pull text are in the gorgeous (and open source!) <a href="http://www.campivisivi.net/titillium/">Tittillium</a>, thanks to <a href="https://developer.mozilla.org/index.php?title=En/CSS/%40font-face">@font-face</a>. The body text was originally set in <a href="http://www.droidfonts.com/">Droid</a>, but due to a legibility issue on Windows machines with text-smoothing disabled, it was switched to the more common Trebuchet MS.</li>
<li>The pages are build using the HTML5 doctype, with <a href="http://jquery.com/">JQuery</a> and the <a href="http://fancybox.net/">Fancybox</a> plugin powering the modal pop-ups.</li>
<li>The screencast on the homepage uses the <a href="http://camendesign.com/code/video_for_everybody">Video for Everybody</a> system to embed the OGG video, with MP4 and Flash fallback for other user agents.</li>
<li>The homepage blog feed pulls in from the <a href="http://blog.getfirebug.com/">Firebug weblog</a> RSS feed using <a href="http://simplepie.org/">SimplePie</a>.</li>
<li>For this iteration, we wanted to switch the site over to a simple content management system, and ended up settling on <a href="http://grabaperch.com/">Perch</a>. It has its shortcomings, but it was straightforward enough and easy enough for me (mostly a designer/UX guy) to implement.</li>
<li>Sean passed along a few images that inspired the sparkly new icon. Originally, we tossed around the idea of doing something cartoony and heroic, like <a href="http://mozilla.seanmartell.com/firebug_torch.png">this lil&#8217; dude</a>, but ultimately decided to go with a more, well, buggier bug.</li>
<li>Photographic inspiration:  <a href="http://www.ent.iastate.edu/images/coleoptera/dogbane/dogbane_beetle.jpg">Bug 1</a> • <a href="http://www.wildanimalsonline.com/insect/firebug-pyrrhocorisapterus.jpg">Bug 2</a> • <a href="http://farm4.static.flickr.com/3176/2738273721_ec11488947.jpg">Bug 3</a> • <a href="http://www.naturspaziergang.de/insecta/Wanzen/Wanzen-Fotos/Pyrrhocoris_apterus-03-03-09_001.jpg">Bugs!</a></li>
</ul>
<p>It&#8217;s been a long time coming, and we hope you like GetFirebug.com&#8217;s new set of clothes. The content is currently being updated and will roll out as it is completed, but in the meantime, please <a href="http://getfirebug.com/">kick the tires</a> and let us know what you think.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.mozilla.com/webdev/2010/02/08/getfirebug-com-redesign-launched/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>The Curious Case of the Giant Scrollbar</title>
		<link>http://blog.mozilla.com/webdev/2009/02/03/the-curious-case-of-the-giant-scrollbar/</link>
		<comments>http://blog.mozilla.com/webdev/2009/02/03/the-curious-case-of-the-giant-scrollbar/#comments</comments>
		<pubDate>Tue, 03 Feb 2009 20:50:38 +0000</pubDate>
		<dc:creator>Ryan Doherty</dc:creator>
				<category><![CDATA[AMO]]></category>
		<category><![CDATA[firebug]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[l10n]]></category>
		<category><![CDATA[rtl]]></category>

		<guid isPermaLink="false">http://blog.mozilla.com/webdev/?p=164</guid>
		<description><![CDATA[Recently I fixed bug 439269 (&#8220;AMO theme has unnecessary scrollbar at the bottom&#8221;) and thought it was an interesting bug for a few reasons. To summarize the issue, for no apparent reason in right-to-left languages a really long scrollbar would appear at the bottom of the window. Even though there was a scrollbar, when you [...]]]></description>
			<content:encoded><![CDATA[<p>Recently I fixed <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=439269">bug 439269</a> (&#8220;AMO theme has unnecessary scrollbar at the bottom&#8221;) and thought it was an interesting bug for a few reasons.</p>
<p>To summarize the issue, for no apparent reason in right-to-left languages a really long scrollbar would appear at the bottom of the window.</p>
<p><img src="http://people.mozilla.org/~rdoherty/scrollbar.jpg" alt="Screenshot of scrollbar" width="450" height="312" /></p>
<p>Even though there was a scrollbar, when you scrolled all the way to the left, nothing was there. Another reason this was odd was the scrollbar only appeared in right-to-left (RTL) languages. Inspecting the page via Firebug didn&#8217;t give any clues as to what was causing the issue as there was no element hidden somewhere onscreen. Finally, to make things even weirder, the scrollbar only appeared when JavaScript was turned on.</p>
<p>After some thought, I had a feeling that we might be using absolute positioning to position an element to the left and above the page offscreen, which is quite common. In a RTL page, however, left is does not move an element outside a page&#8217;s boundaries. So the result is you get a scrollbar.</p>
<p>So what&#8217;s a web developer to do? Firebug to the rescue! I popped it open and started typing some JavaScript into the console to find an element that seemed really far offscreen:</p>
<pre>var nodes = document.getElementsByTagName("*");

for(var i=0; i &lt; nodes.length;i++) {
    var node = nodes[i];
    if(node.offsetLeft &lt; -500) {
        console.log(node);
    }
}</pre>
<p>And Firebug&#8217;s console spit out:</p>
<pre>&lt;ul id="cat-list"&gt;</pre>
<p>Ah-ha! Now I was getting somewhere. A quick search through our CSS files for &#8216;#cat-list&#8217; found an interesting line of code:</p>
<pre>#categories.collapsed #cat-list {
    position: absolute;
    left: -999em;
    top: -999em;
}</pre>
<p>And when JavaScript is turned on, the class &#8216;collapsed&#8217; is added to the parent node #categories. In RTL mode this creates a huge scrollbar because -999em to the left of the page is a valid location that a user can scroll to. The solution?</p>
<pre>.html-rtl #categories.collapsed #cat-list {
    position: absolute;
    left: 999em;
    top: -999em;
}</pre>
<p>On any pages that are RTL, we add the class &#8216;html-rtl&#8217; to the body tag in order to change the layout for RTL languages. This fixes the issue by moving the category list offscreen to the <em>right</em>, which is outside the page in RTL mode.</p>
<p>Things to remember:</p>
<ul>
<li>Firebug is your friend</li>
<li>The DOM is a live document you can inspect, utilize this feature</li>
<li>Be careful with positioning with sites that are LTR and RTL</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://blog.mozilla.com/webdev/2009/02/03/the-curious-case-of-the-giant-scrollbar/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
	</channel>
</rss>

