Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Ticket #8376 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

fix for opacity in IE

Reported by: alexdemi Assigned to: sam
Priority: normal Milestone: 1.x
Component: Prototype Version: edge
Severity: normal Keywords:
Cc:

Description

IE has the problem with an 'opacity' style (it is done with an 'alpha' filter for a style, since IE doesn't understand the 'opacity' style): when 'opacity' is applied, IE stops using of ClearType for the text. It's ok, since they do not use ClearType for any dhtml objects with any applied filters.

But when the 'opacity' style is removed, ClearType will be not restored. To restore it, it is necessary to remove the 'filter' style attribute. It's not enough to set it empty, as it is done now.

I've attached the patch, fixing the problem. It tries to remove the filter attribute from the style if there is no any other filters.

Patch is done against the latest stable version.

Attachments

prototype.diff (0.6 kB) - added by alexdemi on 05/16/07 07:05:53.

Change History

05/16/07 07:05:53 changed by alexdemi

  • attachment prototype.diff added.

05/19/07 00:11:49 changed by madrobby

  • status changed from new to closed.
  • resolution set to fixed.

(In [6779]) Element.setOpacity now calls removeAttribute on the filter style on IE if no more filters remain, which makes Cleartype work properly. Closes #8376.

05/19/07 03:18:33 changed by madrobby

Note: Happened only in IE7, not IE6. This seems to be untestable in unit tests, as style.filter will return an empty string even after calling removeAttribute.