Bug Tracker

Modify

Ticket #187 (closed enhancement: fixed)

Opened 8 years ago

Last modified 7 years ago

I.E. text rendering at full opacity

Reported by: gabelerner@… Owned by:
Priority: trivial Milestone:
Component: core Version:
Keywords: Cc:
Blocking: Blocked by:

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;
}

Change History

comment:1 Changed 8 years ago by gabelerner@…

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 8 years ago by brandon

  • Status changed from new to closed
  • Resolution set to fixed

This is fixed in SVN revision 407.

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

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.