Re: [jQuery] Distorted fonts (in Opera) with opacity = 0.9999

2006-08-29 Thread Klaus Hartl


Joel Birch schrieb:
> In Mac Firefox, when an element is anything other than opacity:1, the  
> text is rendered 'thinner' or lighter in weight. This means that, for  
> example, when you fadeUp, text is 'light' in weight until opacity:1  
> is reached. The transition from opacity:.999 to opacity:1 is very  
> noticeable as all the text in the window jumps from being thinner to  
> full weight. Fading only to .999 means that all the type remains  
> thin, but can be preferable to the more obvious 'jump' effect.
> 
> Joel.

Good to know, I haven't realized that. One more reason to get rid of the 
0....


-- Klaus

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Distorted fonts (in Opera) with opacity = 0.9999

2006-08-29 Thread Klaus Hartl


Joel Birch schrieb:
> In Mac Firefox, when an element is anything other than opacity:1, the  
> text is rendered 'thinner' or lighter in weight. This means that, for  
> example, when you fadeUp, text is 'light' in weight until opacity:1  
> is reached. The transition from opacity:.999 to opacity:1 is very  
> noticeable as all the text in the window jumps from being thinner to  
> full weight. Fading only to .999 means that all the type remains  
> thin, but can be preferable to the more obvious 'jump' effect.
> 
> Joel.

Good to know, I haven't realized that. One more reason to get rid of the
0....


-- Klaus


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Distorted fonts (in Opera) with opacity = 0.9999

2006-08-29 Thread Christof Donat
Hi,

> If I remember correctly, Firefox has an issue with opacity at '1' -  I
> guess I assumed that it was the case in more browsers. I'll add
> another catch in to fix it (sigh)

Have you ever thought about using deans object-Detection-tip for things like 
this:

http://dean.edwards.name/weblog/2005/12/js-tip1/

e.g. like this:

jQuery = (function(addEvent,ffOpacityFix, ...) {
var jq = function() {
...
}
jq.prototype = {
...
animate: function() {
...
}
...
}
if( ffOpaciyFix )
jq.prototype.animate = function() {
...
}

return jq;
}) (
document.addEventListener?
function(element, type, handler) {
element.addEventListener(type, handler, false);
}:
(document.attachEvent?
function(element, type, handler) {
element.attachEvent("on" + type, handler);
}:
function(element, type, handler) {
...
}),
isFF, // however you whant to do it
... 
);

The Trick is that you do all the checking for supported Objects, Methods, etc. 
only once and get an optimized implementation for every Browser.

Christof

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Distorted fonts (in Opera) with opacity = 0.9999

2006-08-28 Thread Joel Birch
In Mac Firefox, when an element is anything other than opacity:1, the  
text is rendered 'thinner' or lighter in weight. This means that, for  
example, when you fadeUp, text is 'light' in weight until opacity:1  
is reached. The transition from opacity:.999 to opacity:1 is very  
noticeable as all the text in the window jumps from being thinner to  
full weight. Fading only to .999 means that all the type remains  
thin, but can be preferable to the more obvious 'jump' effect.

Joel.


On 28/08/2006, at 6:21 PM, Klaus Hartl wrote:

>
>
> John Resig schrieb:
>>> no, this is by design, from source:
>>>
>>> if (z.now == 1) z.now = 0.;
>>>
>>> I only wonder why...
>>
>> If I remember correctly, Firefox has an issue with opacity at '1'  
>> -  I
>> guess I assumed that it was the case in more browsers. I'll add
>> another catch in to fix it (sigh)
>
> John, I removed that line and couldn't find any problems in Firefox  
> 1.5
> Mac/Win, Firefox 1.0 Win, Safari 2.0, Opera 9, IE 6/7...
>
>
> -- Klaus
>
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>
>


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Distorted fonts (in Opera) with opacity = 0.9999

2006-08-28 Thread Klaus Hartl


John Resig schrieb:
>> no, this is by design, from source:
>>
>> if (z.now == 1) z.now = 0.;
>>
>> I only wonder why...
> 
> If I remember correctly, Firefox has an issue with opacity at '1' -  I
> guess I assumed that it was the case in more browsers. I'll add
> another catch in to fix it (sigh)

John, I removed that line and couldn't find any problems in Firefox 1.5 
Mac/Win, Firefox 1.0 Win, Safari 2.0, Opera 9, IE 6/7...


-- Klaus

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Distorted fonts (in Opera) with opacity = 0.9999

2006-08-27 Thread John Resig
> no, this is by design, from source:
>
> if (z.now == 1) z.now = 0.;
>
> I only wonder why...

If I remember correctly, Firefox has an issue with opacity at '1' -  I
guess I assumed that it was the case in more browsers. I'll add
another catch in to fix it (sigh)

Here's the ticket for it:
http://proj.jquery.com/dev/bugs/bug/146/

--John

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Distorted fonts (in Opera) with opacity = 0.9999

2006-08-27 Thread Klaus Hartl

 > Sounds like a float rounding "error"...


no, this is by design, from source:

if (z.now == 1) z.now = 0.;

I only wonder why...


-- Klaus

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Distorted fonts (in Opera) with opacity = 0.9999

2006-08-27 Thread Chris Domigan
Sounds like a float rounding "error"...
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


[jQuery] Distorted fonts (in Opera) with opacity = 0.9999

2006-08-25 Thread Klaus Hartl

Hi,

I am wondering why the opacity is always set to 0. in jQuery's fx 
section, I really don't get the reason...:

if (z.now == 1) z.now = 0.;

This causes distorted (bold) fonts in Opera (similar to IE's distortion 
if background color is missing).


-- Klaus

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/