Modify ↓
Ticket #187 (closed enhancement: fixed)
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
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
Note: See
TracTickets for help on using
tickets.

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