<?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>Create Blog &#187; Please Prove Me Wrong</title>
	<atom:link href="http://create.tpsitulsa.com/blog/category/please-prove-me-wrong/feed/" rel="self" type="application/rss+xml" />
	<link>http://create.tpsitulsa.com/blog</link>
	<description>the create framework blog</description>
	<lastBuildDate>Sat, 30 Jan 2010 20:08:19 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>For the Love of a Deity, Please Prove Me Wrong: IE Alpha</title>
		<link>http://create.tpsitulsa.com/blog/2009/12/29/ie-alpha/</link>
		<comments>http://create.tpsitulsa.com/blog/2009/12/29/ie-alpha/#comments</comments>
		<pubDate>Tue, 29 Dec 2009 19:06:38 +0000</pubDate>
		<dc:creator>Alex Iskander</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Framework]]></category>
		<category><![CDATA[Please Prove Me Wrong]]></category>
		<category><![CDATA[Script]]></category>
		<category><![CDATA[SproutCore]]></category>
		<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://create.tpsitulsa.com/blog/?p=317</guid>
		<description><![CDATA[Please no. Just, no. I mean, honestly, how far can IE sink? I really hope I am wrong here, but&#8230; If you check my test case, you may notice that it looks different in Internet Explorer than it does in sane browsers. What is the culprit? Simple: filter:alpha. Supposedly, making elements somewhat transparent is possible [...]]]></description>
			<content:encoded><![CDATA[<p>Please no. Just, no. I mean, honestly, how far can IE sink? I really hope I am wrong here, but&#8230;</p>

<p>If you <a href="http://create.tpsitulsa.com/static/tests/test-opacity.html">check my test case</a>, you may notice that it looks different in Internet Explorer than it does in sane browsers. What is the culprit?</p>

<p>Simple: filter:alpha.</p>

<p>Supposedly, making elements somewhat transparent is possible in <a href = "http://www.microsoft.com/windows/internet-explorer/default.aspx" rel="nofollow">everyone&#8217;s favorite browser</a>. Well, it is, but you have to use Microsoft&#8217;s proprietary &#8220;filter&#8221; CSS property.</p>

<p>Okay, fine, at least it works. Except in one case, from what I can tell: it will not apply transparency to absolutely positioned child elements of the element with the &#8220;filter&#8221; property set.</p>

<p>Why is this an issue? Let&#8217;s take the simple example of a button control (specifically, SproutCore&#8217;s SC.Button, but it should apply to other button controls as well): you have a left part (with nice rounded corners), a center part (that can be stretched), and a right part (again with the rounded corners). One part—for instance, the right part—is either positioned relatively or is the parent element itself, and simply has a background-position:right. The left and center parts, however, are positioned absolutely; something like <tt>left: 10; right: 10</tt> for the center part; <tt>right:0; width:10;</tt> for the right part (I just made these numbers up! They aren&#8217;t real!)</p>

<p>So, what happens if you try to fade the button out in Internet Explorer? Well, it looks really odd. In the above example, the right part fades out, but the left and center do not. They just stay as they were.</p>

<p>There is only one workaround that I know of: seting <tt>filter:alpha</tt> on every element. There are a few problems with this:</p>

<ul>
<li>Performance. Each setting of &#8220;opacity&#8221; will have to recursively loop through all child elements.</li>
<li>Performance * Animation fps. Yep, animating opacity in IE is plain screwed.</li>
<li>Pure messiness.</li>
<li>Long-term issues: what about when (if) Microsoft fixes the issue?</li>
</ul>

<p>Don&#8217;t you just love Internet Explorer?</p>

<p>I keep thinking I must be wrong, and there must be some nice little workaround, CSS hack, or even the simple explanation of <em>me just being plain wrong</em> (I actually hope I am).</p>

<p>Anyone know?</p>
]]></content:encoded>
			<wfw:commentRss>http://create.tpsitulsa.com/blog/2009/12/29/ie-alpha/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

