Opacity returns to IE8

Yesterday, Microsoft released a post on the IEBlog that had both good and bad news. The good news was that opacity was back. The bad news was that setting opacity in such a way that IE8 would process it as IE8 is now more complicated than ever.

Here’s the result:

-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=0);
opacity: 0;

Here’s a taste:

Unfortunately, IE8 beta 2 supports opacity, but if opacity settings are applied to an image or element containing an image, and the image is a PNG that incorporates alpha transparency, the transparent effect is lost when the opacity is changed.

This makes my head hurt.

(via david)

  1. dstrelau reblogged this from david and added:
    Here’s the result: -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"; ...
  2. david posted this