<?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>Skull Jackpot &#187; opera</title>
	<atom:link href="http://skulljackpot.com/tagged-as/opera/feed/" rel="self" type="application/rss+xml" />
	<link>http://skulljackpot.com</link>
	<description>Various thoughts of minimal interest to others</description>
	<lastBuildDate>Fri, 25 Feb 2011 16:22:46 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Right makes (Opera) wrong</title>
		<link>http://skulljackpot.com/2009/01/23/right-makes-opera-wrong/</link>
		<comments>http://skulljackpot.com/2009/01/23/right-makes-opera-wrong/#comments</comments>
		<pubDate>Sat, 24 Jan 2009 03:51:21 +0000</pubDate>
		<dc:creator>Chris</dc:creator>
				<category><![CDATA[Under the hood]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[opera]]></category>
		<category><![CDATA[redraw]]></category>
		<category><![CDATA[renderbug]]></category>

		<guid isPermaLink="false">http://skulljackpot.com/?p=34</guid>
		<description><![CDATA[<p>In the course of redesigning <a href="http://theopenplanningproject.org/">the new TOPP website</a>, I ran into another odd renderbug which I wanted to document.</p>

<p>The design for the new site includes two drop-down menus (for "About Us" and "Our Work"), and we went with an approach based on the classic <a href="http://www.alistapart.com/articles/dropdowns">Suckerfish</a> menus. Pretty easy to implement, and looked great in our initial design passes. When I went to do some regression testing, I found that Opera was was badly misrendering the menus.</p>]]></description>
			<content:encoded><![CDATA[<p>In the course of redesigning <a href="http://theopenplanningproject.org/">the new TOPP website</a>, I ran into another odd renderbug which I wanted to document.</p>
<p>The design for the new site includes two drop-down menus (for &#8220;About Us&#8221; and &#8220;Our Work&#8221;), and we went with an approach based on the classic <a href="http://www.alistapart.com/articles/dropdowns">Suckerfish</a> menus. Pretty easy to implement, and looked great in our initial design passes. When I went to do some regression testing, I found that Opera was was badly misrendering the menus:</p>
<div class="thumbnail"><a href="http://skitch.com/dimmerswitch/67fd/opera-topp-menus-misrender"><img src="http://img.skitch.com/20090105-d7mnt8g3dyg2ewxuqrqf934g1c.preview.jpg" alt="opera-topp-menus-misrender" /></a></div>
<p>All other browsers were displaying the menus as-intended (even IE6, due to a quick little jQuery function to add the relevant classes on mouseover).</p>
<p>As I was playing with possible resolutions to the problem, I stumbled onto an odd fact. The problem <strong>only</strong> appeared when the nav was aligned to the right. Floating the nav to the right triggered the renderbug, as did positioning it to the right. Unfloated navs behaved correctly, as did ones which were floated or positioned left.</p>
<p>For launch, we went with a left-floated nav, but that prevents the nav from reliably being aligned with the right edge of the parent container (since font sizes can be adjusted independently of page zoom).</p>
<p>After launch, I did some digging to isolate the problem, and to write up a bug report for Opera. I also came up with a <a href="http://sandbox.skulljackpot.com/opera-redraw-renderbug/">test case</a> illustrating the issue.</p>
<p>The problem <strong>only</strong> manifests when the dropdown menus extend below the calculated bottom of the content within the <code>&lt;body&gt;</code> element. Since all the content on the TOPP site was floated, and floated elements are removed from the normal document flow, Opera effectively thought the pages were zero-height.</p>
<p>Somehow, floating or positioning the nav to the right is tripping up Opera&#8217;s redraw logic for the dropdown menus, if those dropdowns extend below the calculated bottom. <strong><em>Why</em></strong> right-floated or right-positioned elements trigger this renderbug, while left-floated or left-positioned elements behave correctly is still a bit of a mystery.</p>
<p>I&#8217;ve written up my test case and submitted a bug report to Opera. Opera unfortunately doesn&#8217;t have good transparency into their bug-tracking process, so I can&#8217;t link to my report, and folks can&#8217;t upvote the bug, but hopefully it&#8217;ll be fixed before too long.</p>
]]></content:encoded>
			<wfw:commentRss>http://skulljackpot.com/2009/01/23/right-makes-opera-wrong/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.191 seconds -->

