Skip to main content

Bug Tracker

Side navigation

#187 closed enhancement (fixed)

Opened September 08, 2006 03:43PM UTC

Closed October 08, 2006 01:59AM UTC

Last modified June 20, 2007 01:46AM UTC

I.E. text rendering at full opacity

Reported by: gabelerner@gmail.com Owned by:
Priority: trivial Milestone:
Component: core Version:
Keywords: Cc:
Blocked by: Blocking:
Description

Since I.E.'s opacity on text looks ugly (http://jszen.blogspot.com/2005/04/ie-bold-text-opacity-problem.html - could be fixed by adding a background but that's a pain), I suggest that when z.now == 1, you just get rid of the alpha opacity filter instead of setting it to z.now*100 = 100 which will render ugly.

So I propose that you change the code within '''prop == 'opacity'''' to something like

if (jQuery.browser.mozilla && z.now == 1) z.now = 0.9999;
if (window.ActiveXObject) {
	if (z.now == 1)
		y.filter = ""; //no need for alpha filter if opacity is full
	else
		y.filter = "alpha(opacity=" + z.now*100 + ")";
} else {
	y.opacity = z.now;
}
Attachments (0)
Change History (2)

Changed September 11, 2006 04:51AM UTC by gabelerner@g comment:1

Actually, might just wanna check for a currentStyle.backgroundColor and set style.backgroundColor to transparent if it's not there. That'll cover all opacity ranges and text will look good the whole time :).

Changed October 08, 2006 01:59AM UTC by brandon comment:2

resolution: → fixed
status: newclosed

This is fixed in SVN revision 407.

Setting background-color: transparent has not been a reliable solution.