[thelist] transparency

Aylard JA (James) jaylard at equilon.com
Thu Jan 25 18:53:31 CST 2001


> > document.all.myElementName.style.filter=alpha(opacity=85)
> > 
> > Neat, but real specific, and I think an IE specific filter, rather than
> > something in the CSS spec.

	Both IE 4+ and Netscape 6 employ proprietary visual filter
capabilities. IE actually has two versions: one for IE 4+, and the other for
IE 5.5+. The earlier version still works with IE 5.5; the later version
relies on DirectX to perform its magic. Both have far more options than just
opacity, however:

http://msdn.microsoft.com/workshop/author/filter/filters.asp

	Netscape's implementation was originally an effort to follow an
evolving W3C CSS 3 recommendation using a simple CSS property named
"opacity". However, as far as I've ever been able to tell, the opacity
property was intended by the W3C for use in SVG (scalable vector graphics),
and not for anything and everything. Who knows. Anyway, Netscape developers
became concerned that a final W3C recommendation on the opacity property
would conflict with the Netscape 6 implementation, so they renamed it as
"-moz-opacity" (and, yes, both dashes are necessary) in a late Mozilla
build.

http://bugzilla.mozilla.org/show_bug.cgi?id=39168

James Aylard




More information about the thelist mailing list