Bug Tracker

Ticket #4845: css.patch

File css.patch, 824 bytes (added by jeffkretz, 4 years ago)
  • css.js

     
    6767                                // Set the alpha filter to set the opacity 
    6868                                style.filter = (style.filter || "").replace( /alpha\([^)]*\)/, "" ) + 
    6969                                        (parseInt( value ) + '' == "NaN" ? "" : "alpha(opacity=" + value * 100 + ")"); 
     70 
     71                                // If all we have is 100% opacity, remove the filter attribute to prevent DirectX boggles. 
     72                                if (style.filter=="alpha(opacity=100)") 
     73                                { 
     74                                        style.removeAttribute('filter'); 
     75 
     76                                        // If there was a class-based opacity assigned, re-set this to 100%. 
     77                                        if (elem && elem.currentStyle && elem.currentStyle.filter) 
     78                                                style.filter = "alpha(opacity=100)"; 
     79                                } 
    7080                        } 
    7181 
    7282                        return style.filter && style.filter.indexOf("opacity=") >= 0 ?