Bug Tracker

Opened 17 years ago

Closed 16 years ago

Last modified 16 years ago

#187 closed enhancement (fixed)

I.E. text rendering at full opacity

Reported by: [email protected] Owned by:
Priority: trivial Milestone:
Component: core Version:
Keywords: Cc:
Blocked by: Blocking:


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
		y.filter = "alpha(opacity=" + z.now*100 + ")";
} else {
	y.opacity = z.now;

Change History (2)

comment:1 Changed 17 years ago by [email protected]

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 :).

comment:2 Changed 16 years ago by brandon

Resolution: fixed
Status: newclosed

This is fixed in SVN revision 407.

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

Note: See TracTickets for help on using tickets.