[Dojo-checkins] [dojo] #10409: _setOpacity IE handling: should remove zoom=1.0 if opacity==1

dojo trac at dojotoolkit.org
Thu Nov 26 03:06:39 EST 2009


#10409: _setOpacity IE handling: should remove zoom=1.0 if opacity==1
--------------------+-------------------------------------------------------
 Reporter:  CnEY    |       Owner:  anonymous
     Type:  defect  |      Status:  new      
 Priority:  normal  |   Milestone:  tbd      
Component:  Core    |     Version:  1.4.0b   
 Severity:  normal  |    Keywords:  opacity  
--------------------+-------------------------------------------------------
 In IE7+, cleartype rendering gets turned off when playing with filters.
 For intermediate values this might not be avoidable, but there is already
 handling to disable these filters when opacity is set to 1.  However, in
 some versions of IE in some rendering modes (for example, IE8 in IE7
 standards mode or Quirks mode), disabling the filter still doesn't turn
 cleartype rendering back on.  Mysteriously, removing the zoom setting
 seems to do the trick.

 This is easily achievable by replacing the following line in _setOpacity:

 node.style.zoom = 1.0;

 with the following instead:

 node.style.zoom = (opacity == 1 ? '' : 1.0);

 I'm attaching the same file as I did with #10408 to reproduce this, except
 this time it needs to be tested with cleartype on, in a specific rendering
 mode in which it happens.  I know it happens in IE8 running in IE7
 standards mode or quirks mode; using the developer tools you can easily
 switch this from the Document Mode menu.  Unfortunately I'm unsure in
 which modes in native IE7 this happens.  As with #10408, I tested on 1.3.2
 but I expect the same thing to happen in 1.4 RC since the code hasn't
 changed.

-- 
Ticket URL: <http://trac.dojotoolkit.org/ticket/10409>
dojo <http://dojotoolkit.org/>
The Dojo UI Toolkit


More information about the Dojo-checkins mailing list