It would require an exceptionally sensitive monitor to see any difference between:
0.990099
and:
0.999999
-moz- or any other type of opacity. However, I imagine it is possible. Do you still have:
Code:
var fadebgcolor="white"
set in the script?
In fact, in the most recent versions of FF, there is nothing wrong with shifting to an opacity value of 1.
Older versions of FF and NS (perhaps even current versions of NS) had a bug whereby if an element was shifted from less than 1 to 1 (opacity or -moz-opacity), it would flash. Opera may still, and certainly recently still had this problem as regards generic opacity which it supported beginning with v 9.0 (current release is 9.24, I believe).
The bottom line is, as long as you are not worried about avoiding this 'flash' in older browsers (and perhaps some current niche ones), either 1 or 0.999999 should be fine. If you are concerned about these browsers, you should test 0.999999 in them, it should be OK, as long as it isn't automatically rounded off to 1 by any of the browsers in question.
And, as I say, the worst that will happen in these browsers that do have an issue with it is a slight, but noticeable flash as the object achieves full opacity.
Edit: I just tested in NS 7.2, which is the only browser of that sort I currently have real handy (I have Opera 9.24, but it has no problem with opacity 1), and NS 7.2 had no problem using 100.0001 as a divisor.
Bookmarks