Ticket #4845: css.patch
| File css.patch, 824 bytes (added by jeffkretz, 4 years ago) |
|---|
-
css.js
67 67 // Set the alpha filter to set the opacity 68 68 style.filter = (style.filter || "").replace( /alpha\([^)]*\)/, "" ) + 69 69 (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 } 70 80 } 71 81 72 82 return style.filter && style.filter.indexOf("opacity=") >= 0 ?
